Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Node.php

function Node::__construct

Same name in this branch
  1. 11.1.x vendor/phpunit/php-code-coverage/src/Report/Xml/Node.php \SebastianBergmann\CodeCoverage\Report\Xml\Node::__construct()
  2. 11.1.x vendor/twig/twig/src/Node/Node.php \Twig\Node\Node::__construct()
  3. 11.1.x vendor/mck89/peast/lib/Peast/Syntax/Node/Node.php \Peast\Syntax\Node\Node::__construct()
  4. 11.1.x core/modules/node/src/Plugin/migrate/source/d6/Node.php \Drupal\node\Plugin\migrate\source\d6\Node::__construct()
  5. 11.1.x core/modules/node/src/Plugin/migrate/source/d7/Node.php \Drupal\node\Plugin\migrate\source\d7\Node::__construct()
  6. 11.1.x core/modules/node/src/Plugin/views/argument_default/Node.php \Drupal\node\Plugin\views\argument_default\Node::__construct()

Node constructor.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info_service: The entity bundle info service.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Menu\MenuParentFormSelectorInterface $parent_form_selector: The parent form selector service.

Overrides WizardPluginBase::__construct

File

core/modules/node/src/Plugin/views/wizard/Node.php, line 69

Class

Node
Tests creating node views with the wizard.

Namespace

Drupal\node\Plugin\views\wizard

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeBundleInfoInterface $bundle_info_service, EntityDisplayRepositoryInterface $entity_display_repository, EntityFieldManagerInterface $entity_field_manager, MenuParentFormSelectorInterface $parent_form_selector) {
    parent::__construct($configuration, $plugin_id, $plugin_definition, $bundle_info_service, $parent_form_selector);
    $this->entityDisplayRepository = $entity_display_repository;
    $this->entityFieldManager = $entity_field_manager;
}
RSS feed
Powered by Drupal