You are here

public function ConfigNamesMapper::getAddRouteParameters in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getAddRouteParameters()
  2. 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getAddRouteParameters()

File

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

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