You are here

public function TermName::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php \Drupal\taxonomy\Plugin\views\argument_validator\TermName::__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\EntityManagerInterface $entity_manager: The entity manager.

Overrides Entity::__construct

File

core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php, line 35
Contains \Drupal\taxonomy\Plugin\views\argument_validator\TermName.

Class

TermName
Validates whether a term name is a valid term argument.

Namespace

Drupal\taxonomy\Plugin\views\argument_validator

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_manager);

  // Not handling exploding term names.
  $this->multipleCapable = FALSE;
  $this->termStorage = $entity_manager
    ->getStorage('taxonomy_term');
}