function Type::__construct
Same name and namespace in other branches
- 9 core/modules/node/src/Plugin/views/argument/Type.php \Drupal\node\Plugin\views\argument\Type::__construct()
- 10 core/modules/node/src/Plugin/views/argument/Type.php \Drupal\node\Plugin\views\argument\Type::__construct()
- 11.x 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.
Overrides HandlerBase::__construct
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\argumentCode
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.