You are here

public static function Page::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::create()
  2. 9 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::create()

Overrides PathPluginBase::create

File

core/modules/views/src/Plugin/views/display/Page.php, line 87

Class

Page
The plugin that handles a full page.

Namespace

Drupal\views\Plugin\views\display

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('router.route_provider'), $container
    ->get('state'), $container
    ->get('entity_type.manager')
    ->getStorage('menu'), $container
    ->get('menu.parent_form_selector'));
}