function BaseRequirementValidatorTrait::getSubscribedEvents
Implements EventSubscriberInterface::getSubscribedEvents().
2 calls to BaseRequirementValidatorTrait::getSubscribedEvents()
- EnvironmentSupportValidator::getSubscribedEvents in core/
modules/ package_manager/ src/ Validator/ EnvironmentSupportValidator.php - StageNotInActiveValidator::getSubscribedEvents in core/
modules/ package_manager/ src/ Validator/ StageNotInActiveValidator.php
File
-
core/
modules/ package_manager/ src/ Validator/ BaseRequirementValidatorTrait.php, line 37
Class
- BaseRequirementValidatorTrait
- Provides methods for base requirement validators.
Namespace
Drupal\package_manager\ValidatorCode
public static function getSubscribedEvents() : array {
// Always run before the BaseRequirementsFulfilledValidator.
// @see \Drupal\package_manager\Validator\BaseRequirementsFulfilledValidator
$priority = BaseRequirementsFulfilledValidator::PRIORITY + 10;
return [
PreCreateEvent::class => [
'validate',
$priority,
],
PreRequireEvent::class => [
'validate',
$priority,
],
PreApplyEvent::class => [
'validate',
$priority,
],
StatusCheckEvent::class => [
'validate',
$priority,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.