You are here

public function IndexNameDepth::__construct in Views Taxonomy Term Name Depth 7.x

Same name and namespace in other branches
  1. 8.6 src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::__construct()
  2. 8 src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::__construct()
  3. 8.3 src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::__construct()

Constructs a Handler object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides HandlerBase::__construct

File

src/Plugin/views/argument/IndexNameDepth.php, line 56

Class

IndexNameDepth
Argument handler for taxonomy terms with depth.

Namespace

Drupal\views_taxonomy_term_name_depth\Plugin\views\argument

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $termStorage, Connection $database, ModuleHandlerInterface $module_handler, AliasCleanerInterface $pathauto_alias_cleaner) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->termStorage = $termStorage;
  $this->database = $database;
  $this->moduleHandler = $module_handler;
  $this->pathautoAliasCleaner = $pathauto_alias_cleaner;
}