class ConfigMapperPopulateEvent
Same name and namespace in other branches
- 11.x core/modules/config_translation/src/Event/ConfigMapperPopulateEvent.php \Drupal\config_translation\Event\ConfigMapperPopulateEvent
- 10 core/modules/config_translation/src/Event/ConfigMapperPopulateEvent.php \Drupal\config_translation\Event\ConfigMapperPopulateEvent
- 9 core/modules/config_translation/src/Event/ConfigMapperPopulateEvent.php \Drupal\config_translation\Event\ConfigMapperPopulateEvent
- 8.9.x core/modules/config_translation/src/Event/ConfigMapperPopulateEvent.php \Drupal\config_translation\Event\ConfigMapperPopulateEvent
Provides a class for events related to configuration translation mappers.
Hierarchy
- class \Drupal\config_translation\Event\ConfigMapperPopulateEvent extends \Drupal\Component\EventDispatcher\Event
Expanded class hierarchy of ConfigMapperPopulateEvent
3 files declare their use of ConfigMapperPopulateEvent
- ConfigNamesMapper.php in core/
modules/ config_translation/ src/ ConfigNamesMapper.php - ConfigTranslationTestSubscriber.php in core/
modules/ config_translation/ tests/ modules/ config_translation_test/ src/ EventSubscriber/ ConfigTranslationTestSubscriber.php - EditorConfigTranslationSubscriber.php in core/
modules/ editor/ src/ EventSubscriber/ EditorConfigTranslationSubscriber.php
File
-
core/
modules/ config_translation/ src/ Event/ ConfigMapperPopulateEvent.php, line 12
Namespace
Drupal\config_translation\EventView source
class ConfigMapperPopulateEvent extends Event {
/**
* Constructs a ConfigMapperPopulateEvent object.
*
* @param \Drupal\config_translation\ConfigMapperInterface $mapper
* The configuration mapper this event is related to.
* @param \Drupal\Core\Routing\RouteMatchInterface $routeMatch
* The route match this event is related to.
*/
public function __construct(protected ConfigMapperInterface $mapper, protected RouteMatchInterface $routeMatch) {
}
/**
* Gets the configuration mapper this event is related to.
*
* @return \Drupal\config_translation\ConfigMapperInterface
* The configuration mapper this event is related to.
*/
public function getMapper() {
return $this->mapper;
}
/**
* Gets the route match this event is related to.
*
* @return \Drupal\Core\Routing\RouteMatchInterface
* The route match this event is related to.
*/
public function getRouteMatch() {
return $this->routeMatch;
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| ConfigMapperPopulateEvent::getMapper | public | function | Gets the configuration mapper this event is related to. |
| ConfigMapperPopulateEvent::getRouteMatch | public | function | Gets the route match this event is related to. |
| ConfigMapperPopulateEvent::__construct | public | function | Constructs a ConfigMapperPopulateEvent object. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.