function ConfigNamesMapper::populateFromRouteMatch

Same name in other branches
  1. 8.9.x 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()
  3. 11.x core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::populateFromRouteMatch()

Overrides ConfigMapperInterface::populateFromRouteMatch

1 call to ConfigNamesMapper::populateFromRouteMatch()
ConfigEntityMapper::populateFromRouteMatch in core/modules/config_translation/src/ConfigEntityMapper.php
1 method overrides ConfigNamesMapper::populateFromRouteMatch()
ConfigEntityMapper::populateFromRouteMatch in core/modules/config_translation/src/ConfigEntityMapper.php

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);
}

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