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

Breadcrumb

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

function ViewsLocalTask::create

Overrides ContainerDeriverInterface::create

1 call to ViewsLocalTask::create()
ViewsHooks::localTasksAlter in core/modules/views/src/Hook/ViewsHooks.php
Implements hook_local_tasks_alter().

File

core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php, line 58

Class

ViewsLocalTask
Provides local task definitions for all views configured as local tasks.

Namespace

Drupal\views\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
    return new static($container->get('router.route_provider'), $container->get('state'), $container->get('entity_type.manager')
        ->getStorage('view'));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal