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

Breadcrumb

  1. Drupal Core 11.1.x

FileValidationEvent.php

Namespace

Drupal\file\Validation

File

core/modules/file/src/Validation/FileValidationEvent.php

View source
<?php

namespace Drupal\file\Validation;

use Drupal\file\FileInterface;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Symfony\Contracts\EventDispatcher\Event;

/**
 * Event for file validations.
 */
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) {
    }

}

Classes

Title Deprecated Summary
FileValidationEvent Event for file validations.

API Navigation

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