You are here

protected static function ContextualLinks::contextualLinkManager in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/contextual/src/Element/ContextualLinks.php \Drupal\contextual\Element\ContextualLinks::contextualLinkManager()
  2. 9 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 103

Class

ContextualLinks
Provides a contextual_links element.

Namespace

Drupal\contextual\Element

Code

protected static function contextualLinkManager() {
  return \Drupal::service('plugin.manager.menu.contextual_link');
}