You are here

public function ViewsEntityArgumentValidator::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php \Drupal\views\Plugin\Derivative\ViewsEntityArgumentValidator::__construct()

Constructs an ViewsEntityArgumentValidator object.

Parameters

string $base_plugin_id: The base plugin ID.

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

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

File

core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php, line 60

Class

ViewsEntityArgumentValidator
Provides views argument validator plugin definitions for all entity types.

Namespace

Drupal\views\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;
}