8.5.x NodeType.php NodeType::__construct(EntityStorageInterface $entity_storage, array $configuration, $plugin_id, $plugin_definition)
8.0.x NodeType.php NodeType::__construct(EntityStorageInterface $entity_storage, array $configuration, $plugin_id, $plugin_definition)
8.1.x NodeType.php NodeType::__construct(EntityStorageInterface $entity_storage, array $configuration, $plugin_id, $plugin_definition)
8.2.x NodeType.php NodeType::__construct(EntityStorageInterface $entity_storage, array $configuration, $plugin_id, $plugin_definition)
8.3.x NodeType.php NodeType::__construct(EntityStorageInterface $entity_storage, array $configuration, $plugin_id, $plugin_definition)
8.4.x NodeType.php NodeType::__construct(EntityStorageInterface $entity_storage, array $configuration, $plugin_id, $plugin_definition)
8.6.x NodeType.php NodeType::__construct(EntityStorageInterface $entity_storage, array $configuration, $plugin_id, $plugin_definition)

Creates a new NodeType instance.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The entity storage.

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.

Overrides ConditionPluginBase::__construct

File

core/modules/node/src/Plugin/Condition/NodeType.php, line 46

Class

NodeType
Provides a 'Node Type' condition.

Namespace

Drupal\node\Plugin\Condition

Code

public function __construct(EntityStorageInterface $entity_storage, array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityStorage = $entity_storage;
}