ConfigEntityStorage

Defines the storage class for configuration entities. Configuration object names of configuration entities are comprised of two parts, separated by a dot: config_prefix: A string denoting the owner (module/extension) of the configuration object, followed by arbitrary other namespace identifiers that are declared by the owning extension; e.g., 'node.type'. The config_prefix does NOT contain a trailing dot. It is defined by the entity type's annotation. ID: A string denoting the entity ID withi

ConfigEntityMapper::__construct

public ConfigEntityMapper::__construct($plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config, LocaleConfigManager $locale_config_manager, ConfigMapperManagerInterface $config_mapper_manager, RouteProviderInterface $route_provider, TranslationInterface $translation_manager, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager) Constructs a ConfigEntityMapper. Parameters string $plugin_id: The config mapper

ConfigEntityMapper::setType

public ConfigEntityMapper::setType($entity_type) Set entity type for this mapper. This should be set in initialization. A mapper that knows its type but not yet its names is still useful for router item and tab generation. The concrete entity only turns out later with actual controller invocations, when the setEntity() method is invoked before the rest of the methods are used. Parameters string $entity_type: The entity type to set. Return value bool TRUE if the entity type was set correctly;

ConfigEntityMapper::setEntity

public ConfigEntityMapper::setEntity(ConfigEntityInterface $entity) Sets the entity instance for this mapper. This method can only be invoked when the concrete entity is known, that is in a request for an entity translation path. After this method is called, the mapper is fully populated with the proper display title and configuration names to use to check permissions or display a translation screen. Parameters \Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The configuration entity

ConfigEntityMapper::processRoute

protected ConfigEntityMapper::processRoute(Route $route) Allows to process all config translation routes. Parameters \Symfony\Component\Routing\Route $route: The route object to process. Overrides ConfigNamesMapper::processRoute File core/modules/config_translation/src/ConfigEntityMapper.php, line 260 Class ConfigEntityMapper Configuration mapper for configuration entities. Namespace Drupal\config_translation Code protected function processRoute(Route $route) { // Add entity upcasti

ConfigEntityMapper::populateFromRouteMatch

public ConfigEntityMapper::populateFromRouteMatch(RouteMatchInterface $route_match) Populate the config mapper with request data. @todo Replace $request with RouteMatch https://www.drupal.org/node/2295255. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match. Overrides ConfigNamesMapper::populateFromRouteMatch File core/modules/config_translation/src/ConfigEntityMapper.php, line 107 Class ConfigEntityMapper Configuration mapper for configuration entities. Na

ConfigEntityMapper::getTypeName

public ConfigEntityMapper::getTypeName() Returns the name of the type of data the mapper encapsulates. Return value string The name of the type of data the mapper encapsulates. Overrides ConfigNamesMapper::getTypeName File core/modules/config_translation/src/ConfigEntityMapper.php, line 206 Class ConfigEntityMapper Configuration mapper for configuration entities. Namespace Drupal\config_translation Code public function getTypeName() { $entity_type_info = $this->entityManager->

ConfigEntityMapper::getTypeLabel

public ConfigEntityMapper::getTypeLabel() Returns the label of the type of data the mapper encapsulates. Return value string The label of the type of data the mapper encapsulates. Overrides ConfigNamesMapper::getTypeLabel File core/modules/config_translation/src/ConfigEntityMapper.php, line 214 Class ConfigEntityMapper Configuration mapper for configuration entities. Namespace Drupal\config_translation Code public function getTypeLabel() { $entityType = $this->entityManager->g

ConfigEntityMapper::getType

public ConfigEntityMapper::getType() Gets the entity type from this mapper. Return value string File core/modules/config_translation/src/ConfigEntityMapper.php, line 199 Class ConfigEntityMapper Configuration mapper for configuration entities. Namespace Drupal\config_translation Code public function getType() { return $this->entityType; }

ConfigEntityMapper::getTitle

public ConfigEntityMapper::getTitle() Returns title of this translation page. Return value string The page title. Overrides ConfigNamesMapper::getTitle File core/modules/config_translation/src/ConfigEntityMapper.php, line 160 Class ConfigEntityMapper Configuration mapper for configuration entities. Namespace Drupal\config_translation Code public function getTitle() { return $this->entity->label() . ' ' . $this->pluginDefinition['title']; }