function ContextualLinks::contextualLinkManager
Same name in other branches
- 8.9.x core/modules/contextual/src/Element/ContextualLinks.php \Drupal\contextual\Element\ContextualLinks::contextualLinkManager()
- 10 core/modules/contextual/src/Element/ContextualLinks.php \Drupal\contextual\Element\ContextualLinks::contextualLinkManager()
- 11.x core/modules/contextual/src/Element/ContextualLinks.php \Drupal\contextual\Element\ContextualLinks::contextualLinkManager()
Wraps the contextual link manager.
Return value
\Drupal\Core\Menu\ContextualLinkManager
1 call to ContextualLinks::contextualLinkManager()
- ContextualLinks::preRenderLinks in core/
modules/ contextual/ src/ Element/ ContextualLinks.php - Pre-render callback: Builds a renderable array for contextual links.
File
-
core/
modules/ contextual/ src/ Element/ ContextualLinks.php, line 106
Class
- ContextualLinks
- Provides a contextual_links element.
Namespace
Drupal\contextual\ElementCode
protected static function contextualLinkManager() {
return \Drupal::service('plugin.manager.menu.contextual_link');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.