You are here

public function HierarchicalTaxonomyMenuBlock::__construct in Hierarchical Taxonomy Menu 8

Constructs a HierarchicalTaxonomyMenuBlock 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.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.

\Drupal\Core\Routing\ResettableStackedRouteMatchInterface $current_route_match: The current route match service.

\Drupal\Core\Database\Connection $database: The the current primary database.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/HierarchicalTaxonomyMenuBlock.php, line 116

Class

HierarchicalTaxonomyMenuBlock
Provides a 'HierarchicalTaxonomyMenuBlock' block.

Namespace

Drupal\hierarchical_taxonomy_menu\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, ResettableStackedRouteMatchInterface $current_route_match, Connection $database, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->languageManager = $language_manager;
  $this->currentRouteMatch = $current_route_match;
  $this->database = $database;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
}