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

Breadcrumb

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

function File::__set

Overrides Constraint::__set

File

vendor/symfony/validator/Constraints/File.php, line 147

Class

File
Validates that a value is a valid "file".

Namespace

Symfony\Component\Validator\Constraints

Code

public function __set(string $option, mixed $value) : void {
    if ('maxSize' === $option) {
        $this->normalizeBinaryFormat($value);
        return;
    }
    parent::__set($option, $value);
}
RSS feed
Powered by Drupal