public function Entity::__construct in Drupal 8
Same name in this branch
- 8 core/modules/views/src/Plugin/views/area/Entity.php \Drupal\views\Plugin\views\area\Entity::__construct()
- 8 core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::__construct()
- 8 core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::__construct()
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/argument_validator/Entity.php \Drupal\views\Plugin\views\argument_validator\Entity::__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\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.
Overrides PluginBase::__construct
2 calls to Entity::__construct()
- TermName::__construct in core/
modules/ taxonomy/ src/ Plugin/ views/ argument_validator/ TermName.php - Constructs an \Drupal\views\Plugin\views\argument_validator\Entity object.
- User::__construct in core/
modules/ user/ src/ Plugin/ views/ argument_validator/ User.php - Constructs an \Drupal\views\Plugin\views\argument_validator\Entity object.
2 methods override Entity::__construct()
- TermName::__construct in core/
modules/ taxonomy/ src/ Plugin/ views/ argument_validator/ TermName.php - Constructs an \Drupal\views\Plugin\views\argument_validator\Entity object.
- User::__construct in core/
modules/ user/ src/ Plugin/ views/ argument_validator/ User.php - Constructs an \Drupal\views\Plugin\views\argument_validator\Entity object.
File
- core/
modules/ views/ src/ Plugin/ views/ argument_validator/ Entity.php, line 67
Class
- Entity
- Defines a argument validator plugin for each entity type.
Namespace
Drupal\views\Plugin\views\argument_validatorCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_type_manager;
if (!$entity_type_bundle_info) {
@trigger_error('Calling Entity::__construct() with the $entity_type_bundle_info argument is supported in drupal:8.7.0 and will be required before drupal:9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED);
$entity_type_bundle_info = \Drupal::service('entity_type.bundle.info');
}
$this->entityTypeBundleInfo = $entity_type_bundle_info;
}