You are here

public function ConfigNamesMapper::populateFromRouteMatch in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::populateFromRouteMatch()
  2. 10 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::populateFromRouteMatch()

Populate the config mapper with route match data.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

Overrides ConfigMapperInterface::populateFromRouteMatch

See also

\Drupal\config_translation\Event\ConfigTranslationEvents::POPULATE_MAPPER

1 call to ConfigNamesMapper::populateFromRouteMatch()
ConfigEntityMapper::populateFromRouteMatch in core/modules/config_translation/src/ConfigEntityMapper.php
Populate the config mapper with route match data.
1 method overrides ConfigNamesMapper::populateFromRouteMatch()
ConfigEntityMapper::populateFromRouteMatch in core/modules/config_translation/src/ConfigEntityMapper.php
Populate the config mapper with route match data.

File

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

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function populateFromRouteMatch(RouteMatchInterface $route_match) {
  $this->langcode = $route_match
    ->getParameter('langcode');
  $event = new ConfigMapperPopulateEvent($this, $route_match);
  $this->eventDispatcher
    ->dispatch($event, ConfigTranslationEvents::POPULATE_MAPPER);
}