function ComposerPatchesValidator::getSubscribedEvents

Same name and namespace in other branches
  1. 11.x core/modules/package_manager/src/Validator/ComposerPatchesValidator.php \Drupal\package_manager\Validator\ComposerPatchesValidator::getSubscribedEvents()

File

core/modules/package_manager/src/Validator/ComposerPatchesValidator.php, line 174

Class

ComposerPatchesValidator
Validates the configuration of the cweagans/composer-patches plugin.

Namespace

Drupal\package_manager\Validator

Code

public static function getSubscribedEvents() : array {
  return [
    PreCreateEvent::class => 'validate',
    PreApplyEvent::class => 'validate',
    StatusCheckEvent::class => 'validate',
  ];
}

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