You are here

public function Manager::__construct in Taxonomy Term Depth 8.2

Same name and namespace in other branches
  1. 8 src/QueueManager/Manager.php \Drupal\taxonomy_term_depth\QueueManager\Manager::__construct()

File

src/QueueManager/Manager.php, line 29

Class

Manager

Namespace

Drupal\taxonomy_term_depth\QueueManager

Code

public function __construct() {
  $this
    ->setVid();

  /** @var QueueFactory $queue_factory */
  $queue_factory = \Drupal::service('queue');

  /** @var QueueInterface $queue */
  $this->queue = $queue_factory
    ->get(static::QUEUE_ID);
}