public function ConfigNamesMapper::populateFromRouteMatch in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::populateFromRouteMatch()
- 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::populateFromRouteMatch()
File
- core/
modules/ config_translation/ src/ ConfigNamesMapper.php, line 383
Class
- ConfigNamesMapper
- Configuration mapper base implementation.
Namespace
Drupal\config_translationCode
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);
}