ViewsLocalTask
class ViewsLocalTask extends DeriverBase implements ContainerDeriverInterface (View source)
Provides local task definitions for all views configured as local tasks.
Properties
| protected array | $derivatives | List of derivative definitions. |
from DeriverBase |
| protected RouteProviderInterface | $routeProvider | The route provider. |
|
| protected StateInterface | $state | The state key value store. |
|
| protected EntityStorageInterface | $viewStorage | The view storage. |
Methods
Gets the definition of a derivative plugin.
Gets the definition of all derivatives of a base plugin.
Constructs a \Drupal\views\Plugin\Derivative\ViewsLocalTask instance.
Creates a new class instance.
Alters base_route and parent_id into the views local tasks.
Return a list of all views and display IDs that have a menu entry.
Details
array
getDerivativeDefinition(string $derivative_id, array|PluginDefinitionInterface $base_plugin_definition)
Gets the definition of a derivative plugin.
array
getDerivativeDefinitions(array $base_plugin_definition)
Gets the definition of all derivatives of a base plugin.
__construct(RouteProviderInterface $route_provider, StateInterface $state, EntityStorageInterface $view_storage)
Constructs a \Drupal\views\Plugin\Derivative\ViewsLocalTask instance.
static ContainerDeriverInterface
create(ContainerInterface $container, string $base_plugin_id)
Creates a new class instance.
alterLocalTasks($local_tasks)
Alters base_route and parent_id into the views local tasks.
protected array
getApplicableMenuViews()
Return a list of all views and display IDs that have a menu entry.