public ConfigEntityMapper::populateFromRouteMatch(RouteMatchInterface $route_match)
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 107
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); }
Please login to continue.