function ConfigMapperPopulateEvent::__construct

Same name in other branches
  1. 9 core/modules/config_translation/src/Event/ConfigMapperPopulateEvent.php \Drupal\config_translation\Event\ConfigMapperPopulateEvent::__construct()
  2. 8.9.x core/modules/config_translation/src/Event/ConfigMapperPopulateEvent.php \Drupal\config_translation\Event\ConfigMapperPopulateEvent::__construct()
  3. 10 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.