You are here

public function ViewsSynonymsEntityArgumentValidator::__construct in Synonyms 8

Same name and namespace in other branches
  1. 2.0.x modules/synonyms_views_argument_validator/src/Plugin/Derivative/ViewsSynonymsEntityArgumentValidator.php \Drupal\synonyms_views_argument_validator\Plugin\Derivative\ViewsSynonymsEntityArgumentValidator::__construct()

Constructs an ViewsSynonymsEntityArgumentValidator object.

File

synonyms_views_argument_validator/src/Plugin/Derivative/ViewsSynonymsEntityArgumentValidator.php, line 37

Class

ViewsSynonymsEntityArgumentValidator
Provides synonyms views argument validator for all entity types.

Namespace

Drupal\synonyms_views_argument_validator\Plugin\Derivative

Code

public function __construct($base_plugin_id, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
  $this->basePluginId = $base_plugin_id;
  $this->entityTypeManager = $entity_type_manager;
  $this->stringTranslation = $string_translation;
}