You are here

public function ConfigNamesMapper::populateFromRouteMatch in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::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 ConfigMapperInterface::populateFromRouteMatch

1 call to ConfigNamesMapper::populateFromRouteMatch()
ConfigEntityMapper::populateFromRouteMatch in core/modules/config_translation/src/ConfigEntityMapper.php
Populate the config mapper with request data.
1 method overrides ConfigNamesMapper::populateFromRouteMatch()
ConfigEntityMapper::populateFromRouteMatch in core/modules/config_translation/src/ConfigEntityMapper.php
Populate the config mapper with request data.

File

core/modules/config_translation/src/ConfigNamesMapper.php, line 373
Contains \Drupal\config_translation\ConfigNamesMapper.

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function populateFromRouteMatch(RouteMatchInterface $route_match) {
  $this->langcode = $route_match
    ->getParameter('langcode');
}