You are here

protected function ConfigTranslationContextualLink::mapperManager in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/Plugin/Menu/ContextualLink/ConfigTranslationContextualLink.php \Drupal\config_translation\Plugin\Menu\ContextualLink\ConfigTranslationContextualLink::mapperManager()
  2. 9 core/modules/config_translation/src/Plugin/Menu/ContextualLink/ConfigTranslationContextualLink.php \Drupal\config_translation\Plugin\Menu\ContextualLink\ConfigTranslationContextualLink::mapperManager()

Gets the mapper manager.

Return value

\Drupal\config_translation\ConfigMapperManagerInterface The mapper manager.

1 call to ConfigTranslationContextualLink::mapperManager()
ConfigTranslationContextualLink::getTitle in core/modules/config_translation/src/Plugin/Menu/ContextualLink/ConfigTranslationContextualLink.php
Returns the localized title to be shown for this contextual link.

File

core/modules/config_translation/src/Plugin/Menu/ContextualLink/ConfigTranslationContextualLink.php, line 40

Class

ConfigTranslationContextualLink
Defines a contextual link plugin with a dynamic title.

Namespace

Drupal\config_translation\Plugin\Menu\ContextualLink

Code

protected function mapperManager() {
  if (!$this->mapperManager) {
    $this->mapperManager = \Drupal::service('plugin.manager.config_translation.mapper');
  }
  return $this->mapperManager;
}