class FileValidationEvent

Same name in other branches
  1. 10 core/modules/file/src/Validation/FileValidationEvent.php \Drupal\file\Validation\FileValidationEvent

Event for file validations.

Hierarchy

  • class \Drupal\file\Validation\FileValidationEvent extends \Symfony\Contracts\EventDispatcher\Event

Expanded class hierarchy of FileValidationEvent

1 file declares its use of FileValidationEvent
FileValidationTestSubscriber.php in core/modules/file/tests/modules/file_validator_test/src/EventSubscriber/FileValidationTestSubscriber.php

File

core/modules/file/src/Validation/FileValidationEvent.php, line 12

Namespace

Drupal\file\Validation
View source
class FileValidationEvent extends Event {
    
    /**
     * Creates a new FileValidationEvent.
     *
     * @param \Drupal\file\FileInterface $file
     *   The file.
     * @param \Symfony\Component\Validator\ConstraintViolationListInterface $violations
     *   The violations.
     */
    public function __construct(FileInterface $file, ConstraintViolationListInterface $violations) {
    }

}

Members

Title Sort descending Modifiers Object type Summary
FileValidationEvent::__construct public function Creates a new FileValidationEvent.

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