function ConfigNamesMapper::getTitle

Same name in other branches
  1. 8.9.x core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getTitle()
  2. 10 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getTitle()
  3. 11.x core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getTitle()

Overrides ConfigMapperInterface::getTitle

1 call to ConfigNamesMapper::getTitle()
ConfigNamesMapper::getTypeLabel in core/modules/config_translation/src/ConfigNamesMapper.php
Returns the label of the type of data the mapper encapsulates.
1 method overrides ConfigNamesMapper::getTitle()
ConfigEntityMapper::getTitle in core/modules/config_translation/src/ConfigEntityMapper.php
Returns title of this translation page.

File

core/modules/config_translation/src/ConfigNamesMapper.php, line 180

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function getTitle() {
    // A title from a *.config_translation.yml. Should be translated for
    // display in the current page language.
    return $this->t($this->pluginDefinition['title']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.