Drupal 8  8.0.2
ContextualLinkManager Class Reference
Inheritance diagram for ContextualLinkManager:

Public Member Functions

 __construct (ControllerResolverInterface $controller_resolver, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager, AccessManagerInterface $access_manager, AccountInterface $account, RequestStack $request_stack)
 
 processDefinition (&$definition, $plugin_id)
 
 getContextualLinkPluginsByGroup ($group_name)
 
- 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)
 

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
 
 $accessManager
 
 $account
 
 $requestStack
 
 $pluginsByGroup
 
- 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

Defines a contextual link plugin manager to deal with contextual links.

See Also

Constructor & Destructor Documentation

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

Constructs a new ContextualLinkManager instance.

Parameters
\Drupal\Core\Controller\ControllerResolverInterface$controller_resolverThe controller resolver.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.
\Drupal\Core\Cache\CacheBackendInterface$cache_backendThe cache backend.
\Drupal\Core\Language\LanguageManagerInterface$language_managerThe language manager.
\Drupal\Core\Access\AccessManagerInterface$access_managerThe access manager.
\Drupal\Core\Session\AccountInterface$accountThe current user.
\Symfony\Component\HttpFoundation\RequestStack$request_stackThe request stack.

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

Here is the call graph for this function:

Member Function Documentation

getContextualLinkPluginsByGroup (   $group_name)

{Gets the contextual link plugins by contextual link group.

Parameters
string$group_nameThe group name.
Returns
array A list of contextual links plugin definitions.
}

Implements ContextualLinkManagerInterface.

References DefaultPluginManager\getDefinitions().

Here is the call graph for this function:

getDiscovery ( )
protected

{}

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

Here is the call graph for this function:

processDefinition ( $definition,
  $plugin_id 
)

{}

Field Documentation

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

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