You are here

public function ConfigNamesMapper::addConfigName in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::addConfigName()

Adds the given configuration name to the list of names.

Note that it is the responsibility of the calling code to ensure that the configuration exists.

Parameters

string $name: Configuration name.

Overrides ConfigMapperInterface::addConfigName

3 calls to ConfigNamesMapper::addConfigName()
ConfigEntityMapper::setEntity in core/modules/config_translation/src/ConfigEntityMapper.php
Sets the entity instance for this mapper.
ConfigFieldMapper::setEntity in core/modules/config_translation/src/ConfigFieldMapper.php
Sets the entity instance for this mapper.
NodeTypeMapper::setEntity in core/modules/node/src/ConfigTranslation/NodeTypeMapper.php
Sets the entity instance for this mapper.

File

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

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function addConfigName($name) {
  $this->pluginDefinition['names'][] = $name;
}