You are here

public function ViewsEntityArgumentValidator::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\EntityManagerInterface $entity_manager: The entity manager.

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

File

core/modules/views/src/Plugin/Derivative/ViewsEntityArgumentValidator.php, line 58
Contains \Drupal\views\Plugin\Derivative\ViewsEntityArgumentValidator.

Class

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

Namespace

Drupal\views\Plugin\Derivative

Code

public function __construct($base_plugin_id, EntityManagerInterface $entity_manager, TranslationInterface $string_translation) {
  $this->basePluginId = $base_plugin_id;
  $this->entityManager = $entity_manager;
  $this->stringTranslation = $string_translation;
}