public function ConfigEntityMapper::populateFromRouteMatch in Drupal 8
Same name and namespace in other branches
- 9 core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\ConfigEntityMapper::populateFromRouteMatch()
Populate the config mapper with route match data.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.
Overrides ConfigNamesMapper::populateFromRouteMatch
See also
\Drupal\config_translation\Event\ConfigTranslationEvents::POPULATE_MAPPER
File
- core/
modules/ config_translation/ src/ ConfigEntityMapper.php, line 121
Class
- ConfigEntityMapper
- Configuration mapper for configuration entities.
Namespace
Drupal\config_translationCode
public function populateFromRouteMatch(RouteMatchInterface $route_match) {
$entity = $route_match
->getParameter($this->entityType);
$this
->setEntity($entity);
parent::populateFromRouteMatch($route_match);
}