Drupal 8  8.0.2
ViewsLocalTask Class Reference
Inheritance diagram for ViewsLocalTask:

Public Member Functions

 __construct (RouteProviderInterface $route_provider, StateInterface $state, EntityStorageInterface $view_storage)
 
- Public Member Functions inherited from DeriverBase
 getDerivativeDefinition ($derivative_id, $base_plugin_definition)
 
 getDerivativeDefinitions ($base_plugin_definition)
 

Static Public Member Functions

static create (ContainerInterface $container, $base_plugin_id)
 

Protected Member Functions

 getApplicableMenuViews ()
 

Protected Attributes

 $routeProvider
 
 $state
 
 $viewStorage
 
- Protected Attributes inherited from DeriverBase
 $derivatives = array()
 

Detailed Description

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

Constructor & Destructor Documentation

__construct ( RouteProviderInterface  $route_provider,
StateInterface  $state,
EntityStorageInterface  $view_storage 
)

Constructs a instance.

Parameters
\Drupal\Core\Routing\RouteProviderInterface$route_providerThe route provider.
\Drupal\Core\State\StateInterface$stateThe state key value store.
\Drupal\Core\Entity\EntityStorageInterface$view_storageThe view storage.

References Drupal\state().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container,
  $base_plugin_id 
)
static

{Creates a new class instance.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe container to pull out services used in the fetcher.
string$base_plugin_idThe base plugin ID for the plugin ID.
Returns
static Returns an instance of this fetcher.
}

Implements ContainerDeriverInterface.

getApplicableMenuViews ( )
protected

Return a list of all views and display IDs that have a menu entry.

Returns
array A list of arrays containing the $view and $display_id.
array(
array($view, $display_id),
array($view, $display_id),
);

References Views\getApplicableViews().

Here is the call graph for this function:


The documentation for this class was generated from the following file: