ConfigEntityMapper::processRoute

protected ConfigEntityMapper::processRoute(Route $route)

Allows to process all config translation routes.

Parameters

\Symfony\Component\Routing\Route $route: The route object to process.

Overrides ConfigNamesMapper::processRoute

File

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

Class

ConfigEntityMapper
Configuration mapper for configuration entities.

Namespace

Drupal\config_translation

Code

protected function processRoute(Route $route) {
  // Add entity upcasting information.
  $parameters = $route->getOption('parameters') ? : array();
  $parameters += array(
    $this->entityType => array(
      'type' => 'entity:' . $this->entityType,
    )
  );
  $route->setOption('parameters', $parameters);
}
doc_Drupal
2016-10-29 08:52:48
Comments
Leave a Comment

Please login to continue.