function ViewsEntityArgumentValidator::__construct

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php \Drupal\views\Plugin\Derivative\ViewsEntityArgumentValidator::__construct()
  2. 10 core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php \Drupal\views\Plugin\Derivative\ViewsEntityArgumentValidator::__construct()
  3. 9 core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php \Drupal\views\Plugin\Derivative\ViewsEntityArgumentValidator::__construct()
  4. 8.9.x core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php \Drupal\views\Plugin\Derivative\ViewsEntityArgumentValidator::__construct()

Constructs a ViewsEntityArgumentValidator object.

Parameters

string $basePluginId: The base plugin ID.

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

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

File

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

Class

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

Namespace

Drupal\views\Plugin\Derivative

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.