You are here

public function Type::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/views/argument/Type.php \Drupal\node\Plugin\views\argument\Type::__construct()
  2. 9 core/modules/node/src/Plugin/views/argument/Type.php \Drupal\node\Plugin\views\argument\Type::__construct()

Constructs a new Node Type 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\EntityStorageInterface $node_type_storage: The entity storage class.

File

core/modules/node/src/Plugin/views/argument/Type.php, line 35

Class

Type
Argument handler to accept a node type.

Namespace

Drupal\node\Plugin\views\argument

Code

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