Drupal 8  8.0.2
LocalActionManager Class Reference
Inheritance diagram for LocalActionManager:

Public Member Functions

 __construct (ControllerResolverInterface $controller_resolver, RequestStack $request_stack, RouteMatchInterface $route_match, RouteProviderInterface $route_provider, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager, AccessManagerInterface $access_manager, AccountInterface $account)
 
 getTitle (LocalActionInterface $local_action)
 
- Public Member Functions inherited from DefaultPluginManager
 __construct ($subdir,\Traversable $namespaces, ModuleHandlerInterface $module_handler, $plugin_interface=NULL, $plugin_definition_annotation_name= 'Drupal\Component\Annotation\Plugin')
 
 setCacheBackend (CacheBackendInterface $cache_backend, $cache_key, array $cache_tags=array())
 
 getDefinitions ()
 
 clearCachedDefinitions ()
 
 useCaches ($use_caches=FALSE)
 
 processDefinition (&$definition, $plugin_id)
 
- Public Member Functions inherited from PluginManagerBase
 getDefinition ($plugin_id, $exception_on_invalid=TRUE)
 
 getDefinitions ()
 
 createInstance ($plugin_id, array $configuration=array())
 
 getInstance (array $options)
 
- Public Member Functions inherited from DiscoveryInterface
 hasDefinition ($plugin_id)
 
- Public Member Functions inherited from LocalActionManagerInterface
 getActionsForRoute ($route_appears)
 

Protected Member Functions

 getDiscovery ()
 
- Protected Member Functions inherited from DefaultPluginManager
 alterInfo ($alter_hook)
 
 getCachedDefinitions ()
 
 setCachedDefinitions ($definitions)
 
 getDiscovery ()
 
 getFactory ()
 
 findDefinitions ()
 
 alterDefinitions (&$definitions)
 
 providerExists ($provider)
 
- Protected Member Functions inherited from PluginManagerBase
 getDiscovery ()
 
 getFactory ()
 

Protected Attributes

 $defaults
 
 $controllerResolver
 
 $requestStack
 
 $routeMatch
 
 $routeProvider
 
 $accessManager
 
 $account
 
 $instances = array()
 
- Protected Attributes inherited from DefaultPluginManager
 $cacheKey
 
 $cacheTags = array()
 
 $alterHook
 
 $subdir
 
 $moduleHandler
 
 $defaults = array()
 
 $pluginDefinitionAnnotationName
 
 $pluginInterface
 
 $namespaces
 
- Protected Attributes inherited from PluginManagerBase
 $discovery
 
 $factory
 
 $mapper
 

Detailed Description

Provides the default local action manager using YML as primary definition.

Constructor & Destructor Documentation

__construct ( ControllerResolverInterface  $controller_resolver,
RequestStack  $request_stack,
RouteMatchInterface  $route_match,
RouteProviderInterface  $route_provider,
ModuleHandlerInterface  $module_handler,
CacheBackendInterface  $cache_backend,
LanguageManagerInterface  $language_manager,
AccessManagerInterface  $access_manager,
AccountInterface  $account 
)

Constructs a LocalActionManager object.

Parameters
\Symfony\Component\HttpKernel\Controller\ControllerResolverInterface$controller_resolverAn object to use in introspecting route methods.
\Symfony\Component\HttpFoundation\RequestStack$request_stackThe request stack.
\Drupal\Core\Routing\RouteMatchInterface$route_matchThe current route match.
\Drupal\Core\Routing\RouteProviderInterface$route_providerThe route provider.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.
\Drupal\Core\Cache\CacheBackendInterface$cache_backendCache backend instance to use.
\Drupal\Core\Language\LanguageManagerInterface$language_managerThe language manager.
\Drupal\Core\Access\AccessManagerInterface$access_managerThe access manager.
\Drupal\Core\Session\AccountInterface$accountThe current user.

References Drupal\accessManager(), DefaultPluginManager\alterInfo(), LanguageManagerInterface\getCurrentLanguage(), Drupal\moduleHandler(), Drupal\requestStack(), Drupal\routeMatch(), and DefaultPluginManager\setCacheBackend().

Here is the call graph for this function:

Member Function Documentation

getDiscovery ( )
protected

{}

References YamlDiscovery\addTranslatableProperty(), and Drupal\moduleHandler().

Here is the call graph for this function:

getTitle ( LocalActionInterface  $local_action)

{Gets the title for a local action.

Parameters
\Drupal\Core\Menu\LocalActionInterface$local_actionAn object to get the title from.
Returns
string The title (already localized).
Exceptions
\BadMethodCallExceptionIf the plugin does not implement the getTitle() method.
}

Implements LocalActionManagerInterface.

References Drupal\requestStack().

Here is the call graph for this function:

Field Documentation

$defaults
protected
Initial value:
= array(
'id' => NULL,
'title' => '',
'weight' => NULL,
'route_name' => NULL,
'route_parameters' => array(),
'options' => array(),
'appears_on' => array(),
'class' => 'Drupal\Core\Menu\LocalActionDefault',
)

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