You are here

public function TopLevelBook::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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 41

Class

TopLevelBook
Default argument plugin to get the current node's top level book.

Namespace

Drupal\book\Plugin\views\argument_default

Code

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;
}