function ConfigNamesMapper::getAddRouteParameters
Same name in other branches
- 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getAddRouteParameters()
- 10 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getAddRouteParameters()
- 11.x core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getAddRouteParameters()
Overrides ConfigMapperInterface::getAddRouteParameters
2 calls to ConfigNamesMapper::getAddRouteParameters()
- ConfigNamesMapper::getDeleteRouteParameters in core/
modules/ config_translation/ src/ ConfigNamesMapper.php - Returns the route parameters for the translation deletion route.
- ConfigNamesMapper::getEditRouteParameters in core/
modules/ config_translation/ src/ ConfigNamesMapper.php - Returns the route parameters for the translation edit form route.
File
-
core/
modules/ config_translation/ src/ ConfigNamesMapper.php, line 275
Class
- ConfigNamesMapper
- Configuration mapper base implementation.
Namespace
Drupal\config_translationCode
public function getAddRouteParameters() {
// If sub-classes provide route parameters in getBaseRouteParameters(), they
// probably also want to provide those for the add, edit, and delete forms.
$parameters = $this->getBaseRouteParameters();
$parameters['langcode'] = $this->langcode;
return $parameters;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.