function EventLogSubscriber::getSubscribedEvents
1 call to EventLogSubscriber::getSubscribedEvents()
- TemplateProjectTestBase::assertExpectedStageEventsFired in core/
modules/ package_manager/ tests/ src/ Build/ TemplateProjectTestBase.php - Asserts stage events were fired in a specific order.
File
-
core/
modules/ package_manager/ tests/ modules/ package_manager_test_event_logger/ src/ EventSubscriber/ EventLogSubscriber.php, line 67
Class
- EventLogSubscriber
- Defines an event subscriber to test logging during events in Package Manager.
Namespace
Drupal\package_manager_test_event_logger\EventSubscriberCode
public static function getSubscribedEvents() : array {
// This subscriber should run before every other validator, because the
// purpose of this subscriber is to log all dispatched events.
// @see \Drupal\package_manager\Validator\BaseRequirementsFulfilledValidator
// @see \Drupal\package_manager\Validator\BaseRequirementValidatorTrait
// @see \Drupal\package_manager\Validator\EnvironmentSupportValidator
return [
CollectPathsToExcludeEvent::class => [
'excludeLogFile',
],
PreCreateEvent::class => [
'logEventInfo',
PHP_INT_MAX,
],
PostCreateEvent::class => [
'logEventInfo',
PHP_INT_MAX,
],
PreRequireEvent::class => [
'logEventInfo',
PHP_INT_MAX,
],
PostRequireEvent::class => [
'logEventInfo',
PHP_INT_MAX,
],
PreApplyEvent::class => [
'logEventInfo',
PHP_INT_MAX,
],
PostApplyEvent::class => [
'logEventInfo',
PHP_INT_MAX,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.