You are here

public function ConfigEntityMapper::populateFromRouteMatch 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::populateFromRouteMatch()

Populate the config mapper with request data.

@todo Replace $request with RouteMatch https://www.drupal.org/node/2295255.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

Overrides ConfigNamesMapper::populateFromRouteMatch

File

core/modules/config_translation/src/ConfigEntityMapper.php, line 112
Contains \Drupal\config_translation\ConfigEntityMapper.

Class

ConfigEntityMapper
Configuration mapper for configuration entities.

Namespace

Drupal\config_translation

Code

public function populateFromRouteMatch(RouteMatchInterface $route_match) {
  parent::populateFromRouteMatch($route_match);
  $entity = $route_match
    ->getParameter($this->entityType);
  $this
    ->setEntity($entity);
}