ContextualLinkManager::$controllerResolver

A controller resolver object. Type: \Symfony\Component\HttpKernel\Controller\ControllerResolverInterface File core/lib/Drupal/Core/Menu/ContextualLinkManager.php, line 52 Class ContextualLinkManager Defines a contextual link plugin manager to deal with contextual links. Namespace Drupal\Core\Menu Code protected $controllerResolver;

ContextualLinkManager::$account

The current user. Type: \Drupal\Core\Session\AccountInterface File core/lib/Drupal/Core/Menu/ContextualLinkManager.php, line 66 Class ContextualLinkManager Defines a contextual link plugin manager to deal with contextual links. Namespace Drupal\Core\Menu Code protected $account;

ContextualLinkManager::$accessManager

The access manager. Type: \Drupal\Core\Access\AccessManagerInterface File core/lib/Drupal/Core/Menu/ContextualLinkManager.php, line 59 Class ContextualLinkManager Defines a contextual link plugin manager to deal with contextual links. Namespace Drupal\Core\Menu Code protected $accessManager;

ContextualLinkManager

Defines a contextual link plugin manager to deal with contextual links. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\Core\Menu\ContextualLinkManager implements ContextualLinkManagerInterface See also \Drupal\Core\Menu\Contextual

ContextualLinkInterface::getWeight

public ContextualLinkInterface::getWeight() Returns the weight of the contextual link. The contextual links in one group are sorted by weight for display. Return value int The weight as positive/negative integer. File core/lib/Drupal/Core/Menu/ContextualLinkInterface.php, line 68 Class ContextualLinkInterface Defines a contextual link plugin. Namespace Drupal\Core\Menu Code public function getWeight();

ContextualLinkInterface::getTitle

public ContextualLinkInterface::getTitle() Returns the localized title to be shown for this contextual link. Subclasses may add optional arguments like NodeInterface $node = NULL that will be supplied by the ControllerResolver. Return value string The title to be shown for this action. See also \Drupal\Core\Menu\ContextualLinksManager::getTitle() File core/lib/Drupal/Core/Menu/ContextualLinkInterface.php, line 29 Class ContextualLinkInterface Defines a contextual link plugin. Namespace

ContextualLinkInterface::getRouteName

public ContextualLinkInterface::getRouteName() Returns the route name of the contextual link. Return value string The name of the route this contextual link links to. File core/lib/Drupal/Core/Menu/ContextualLinkInterface.php, line 37 Class ContextualLinkInterface Defines a contextual link plugin. Namespace Drupal\Core\Menu Code public function getRouteName();

ContextualLinkInterface::getOptions

public ContextualLinkInterface::getOptions() Returns the link options passed to the link generator. Return value array An associative array of options. File core/lib/Drupal/Core/Menu/ContextualLinkInterface.php, line 58 Class ContextualLinkInterface Defines a contextual link plugin. Namespace Drupal\Core\Menu Code public function getOptions();

ContextualLinkInterface::getGroup

public ContextualLinkInterface::getGroup() Returns the group this contextual link should be rendered in. A contextual link group is a set of contextual links that are displayed together on a certain page. For example, the 'block' group displays all links related to the block, such as the block instance edit link as well as the views edit link, if it is a view block. Return value string The contextual links group name. File core/lib/Drupal/Core/Menu/ContextualLinkInterface.php, line 50 Class

ContextualLinkInterface

Defines a contextual link plugin. Contextual links by default are in the module_name.links.contextual.yml file. These YAML files contain a list of contextual link plugin definitions, keyed by the plugin ID. Each definition must define a route_name and a group and might define title, options, and weight. See the getter methods on this interface for an explanation of each. Hierarchy interface \Drupal\Core\Menu\ContextualLinkInterface Related topics Menu system Define the navigation menus, loca