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

Breadcrumb

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

function File::__get

Overrides Constraint::__get

File

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

Class

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

Namespace

Symfony\Component\Validator\Constraints

Code

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