You are here

public function ConfigEntityMapper::getBaseRouteParameters in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 172
Contains \Drupal\config_translation\ConfigEntityMapper.

Class

ConfigEntityMapper
Configuration mapper for configuration entities.

Namespace

Drupal\config_translation

Code

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