ConfigNamesMapper::getAddRouteParameters

public ConfigNamesMapper::getAddRouteParameters()

Returns the route parameters for the translation add form route.

Return value

array

Overrides ConfigMapperInterface::getAddRouteParameters

File

core/modules/config_translation/src/ConfigNamesMapper.php, line 261

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

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;
}
doc_Drupal
2016-10-29 08:54:16
Comments
Leave a Comment

Please login to continue.