protected function ConfigEntityMapper::processRoute in Drupal 8
Same name and namespace in other branches
- 9 core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\ConfigEntityMapper::processRoute()
- 10 core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\ConfigEntityMapper::processRoute()
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 276
Class
- ConfigEntityMapper
- Configuration mapper for configuration entities.
Namespace
Drupal\config_translationCode
protected function processRoute(Route $route) {
// Add entity upcasting information.
$parameters = $route
->getOption('parameters') ?: [];
$parameters += [
$this->entityType => [
'type' => 'entity:' . $this->entityType,
],
];
$route
->setOption('parameters', $parameters);
}