You are here

public function SynonymsEntity::__construct in Synonyms 8

Same name in this branch
  1. 8 synonyms_views_argument_validator/src/Plugin/views/argument_validator/SynonymsEntity.php \Drupal\synonyms_views_argument_validator\Plugin\views\argument_validator\SynonymsEntity::__construct()
  2. 8 synonyms_views_filter/src/Plugin/views/filter/SynonymsEntity.php \Drupal\synonyms_views_filter\Plugin\views\filter\SynonymsEntity::__construct()

Constructs an \Drupal\views\Plugin\views\argument_validator\Entity 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\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

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

Overrides Entity::__construct

File

synonyms_views_argument_validator/src/Plugin/views/argument_validator/SynonymsEntity.php, line 41

Class

SynonymsEntity
Synonyms-friendly entity validator.

Namespace

Drupal\synonyms_views_argument_validator\Plugin\views\argument_validator

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, BehaviorService $behavior_service) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $entity_type_bundle_info);
  $this->entityTypeManager = $entity_type_manager;
  $this->behaviorService = $behavior_service;
}