You are here

public function ConfigMapperPopulateEvent::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config_translation/src/Event/ConfigMapperPopulateEvent.php \Drupal\config_translation\Event\ConfigMapperPopulateEvent::__construct()

Constructs a ConfigMapperPopulateEvent object.

Parameters

\Drupal\config_translation\ConfigMapperInterface $mapper: The configuration mapper this event is related to.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match this event is related to.

File

core/modules/config_translation/src/Event/ConfigMapperPopulateEvent.php, line 36

Class

ConfigMapperPopulateEvent
Provides a class for events related to configuration translation mappers.

Namespace

Drupal\config_translation\Event

Code

public function __construct(ConfigMapperInterface $mapper, RouteMatchInterface $route_match) {
  $this->mapper = $mapper;
  $this->routeMatch = $route_match;
}