You are here

public function ConfigEntityMapper::getBaseRouteParameters in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\ConfigEntityMapper::getBaseRouteParameters()

Returns the route parameters for the base route the mapper is attached to.

Return value

array

Overrides ConfigNamesMapper::getBaseRouteParameters

1 call to ConfigEntityMapper::getBaseRouteParameters()
ConfigFieldMapper::getBaseRouteParameters in core/modules/config_translation/src/ConfigFieldMapper.php
Returns the route parameters for the base route the mapper is attached to.
1 method overrides ConfigEntityMapper::getBaseRouteParameters()
ConfigFieldMapper::getBaseRouteParameters in core/modules/config_translation/src/ConfigFieldMapper.php
Returns the route parameters for the base route the mapper is attached to.

File

core/modules/config_translation/src/ConfigEntityMapper.php, line 181

Class

ConfigEntityMapper
Configuration mapper for configuration entities.

Namespace

Drupal\config_translation

Code

public function getBaseRouteParameters() {
  return [
    $this->entityType => $this->entity
      ->id(),
  ];
}