You are here

public function EntityBundle::__construct in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/Entity/Plugin/Condition/EntityBundle.php \Drupal\Core\Entity\Plugin\Condition\EntityBundle::__construct()
  2. 10 core/lib/Drupal/Core/Entity/Plugin/Condition/Deriver/EntityBundle.php \Drupal\Core\Entity\Plugin\Condition\Deriver\EntityBundle::__construct()
Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/Plugin/Condition/EntityBundle.php \Drupal\Core\Entity\Plugin\Condition\EntityBundle::__construct()

Creates a new EntityBundle instance.

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

File

core/lib/Drupal/Core/Entity/Plugin/Condition/EntityBundle.php, line 43

Class

EntityBundle
Provides the 'Entity Bundle' condition.

Namespace

Drupal\Core\Entity\Plugin\Condition

Code

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