function FileValidationTestSubscriber::getSubscribedEvents

Same name in other branches
  1. 10 core/modules/file/tests/modules/file_validator_test/src/EventSubscriber/FileValidationTestSubscriber.php \Drupal\file_validator_test\EventSubscriber\FileValidationTestSubscriber::getSubscribedEvents()

File

core/modules/file/tests/modules/file_validator_test/src/EventSubscriber/FileValidationTestSubscriber.php, line 28

Class

FileValidationTestSubscriber
Provides a validation listener for file validation tests.

Namespace

Drupal\file_validator_test\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    return [
        FileValidationEvent::class => 'onFileValidation',
    ];
}

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