function ConfigEntityMapper::getBaseRouteParameters

Same name in other branches
  1. 8.9.x core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\ConfigEntityMapper::getBaseRouteParameters()
  2. 10 core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\ConfigEntityMapper::getBaseRouteParameters()
  3. 11.x core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\ConfigEntityMapper::getBaseRouteParameters()

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 171

Class

ConfigEntityMapper
Configuration mapper for configuration entities.

Namespace

Drupal\config_translation

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.