function TopLevelBook::__construct
Same name in other branches
- 9 core/modules/book/src/Plugin/views/argument_default/TopLevelBook.php \Drupal\book\Plugin\views\argument_default\TopLevelBook::__construct()
- 8.9.x core/modules/book/src/Plugin/views/argument_default/TopLevelBook.php \Drupal\book\Plugin\views\argument_default\TopLevelBook::__construct()
- 11.x core/modules/book/src/Plugin/views/argument_default/TopLevelBook.php \Drupal\book\Plugin\views\argument_default\TopLevelBook::__construct()
Constructs a Drupal\book\Plugin\views\argument_default\TopLevelBook object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.
\Drupal\node\NodeStorageInterface $node_storage: The node storage controller.
Overrides Node::__construct
File
-
core/
modules/ book/ src/ Plugin/ views/ argument_default/ TopLevelBook.php, line 42
Class
- TopLevelBook
- Default argument plugin to get the current node's top level book.
Namespace
Drupal\book\Plugin\views\argument_defaultCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, RouteMatchInterface $route_match, NodeStorageInterface $node_storage) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $route_match);
$this->nodeStorage = $node_storage;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.