function Entity::__construct

Same name in this branch
  1. 9 core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::__construct()
  2. 9 core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::__construct()
Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::__construct()
  2. 8.9.x core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::__construct()
  3. 8.9.x core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::__construct()
  4. 10 core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::__construct()
  5. 10 core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::__construct()
  6. 10 core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::__construct()
  7. 11.x core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::__construct()
  8. 11.x core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::__construct()
  9. 11.x core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::__construct()

Constructs a \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\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

Overrides PluginBase::__construct

3 calls to Entity::__construct()
Term::__construct in core/modules/taxonomy/src/Plugin/views/argument_validator/Term.php
Constructs a \Drupal\views\Plugin\views\argument_validator\Entity object.
TermName::__construct in core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php
Constructs a \Drupal\views\Plugin\views\argument_validator\Entity object.
User::__construct in core/modules/user/src/Plugin/views/argument_validator/User.php
Constructs a \Drupal\views\Plugin\views\argument_validator\Entity object.
3 methods override Entity::__construct()
Term::__construct in core/modules/taxonomy/src/Plugin/views/argument_validator/Term.php
Constructs a \Drupal\views\Plugin\views\argument_validator\Entity object.
TermName::__construct in core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php
Constructs a \Drupal\views\Plugin\views\argument_validator\Entity object.
User::__construct in core/modules/user/src/Plugin/views/argument_validator/User.php
Constructs a \Drupal\views\Plugin\views\argument_validator\Entity object.

File

core/modules/views/src/Plugin/views/argument_validator/Entity.php, line 60

Class

Entity
Defines an argument validator plugin for each entity type.

Namespace

Drupal\views\Plugin\views\argument_validator

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->entityTypeManager = $entity_type_manager;
    $this->entityTypeBundleInfo = $entity_type_bundle_info;
}

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