Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FileValidationEvent.php

class FileValidationEvent

Event for file validations.

Hierarchy

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

Expanded class hierarchy of FileValidationEvent

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 Overriden Title Overrides
Event::$propagationStopped private property
Event::isPropagationStopped public function Is propagation stopped? Overrides StoppableEventInterface::isPropagationStopped
Event::stopPropagation public function Stops the propagation of the event to further event listeners. 1
FileValidationEvent::__construct public function Creates a new FileValidationEvent.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal