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\ValidationView 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. |