LocalTaskManagerInterface
interface LocalTaskManagerInterface implements PluginManagerInterface (View source)
Manages discovery and instantiation of menu local task plugins.
This manager finds plugins that are rendered as local tasks (usually tabs). Derivatives are supported for modules that wish to generate multiple tabs on behalf of something else.
Methods
Gets a specific plugin definition.
Indicates if a specific plugin definition exists.
Creates a pre-configured instance of a plugin.
Gets a preconfigured instance of a plugin.
Find all local tasks that appear on a named route.
Gets the render array for all local tasks.
Renders the local tasks (tabs) for the given route.
Details
mixed
getDefinition(string $plugin_id, bool $exception_on_invalid = TRUE)
Gets a specific plugin definition.
array
getDefinitions()
Gets the definition of all plugins for this type.
bool
hasDefinition(string $plugin_id)
Indicates if a specific plugin definition exists.
object
createInstance(string $plugin_id, array $configuration = [])
Creates a pre-configured instance of a plugin.
object|false
getInstance(array $options)
Gets a preconfigured instance of a plugin.
string
getTitle(LocalTaskInterface $local_task)
Gets the title for a local task.
array
getLocalTasksForRoute(string $route_name)
Find all local tasks that appear on a named route.
array
getTasksBuild(string $current_route_name, RefinableCacheableDependencyInterface $cacheability)
Gets the render array for all local tasks.
array
getLocalTasks(string $route_name, int $level = 0)
Renders the local tasks (tabs) for the given route.