class Image

@api

Hierarchy

  • class \Symfony\Component\Validator\Constraint
    • class \Symfony\Component\Validator\Constraints\File
      • class \Symfony\Component\Validator\Constraints\Image

Expanded class hierarchy of Image

1 file declares its use of Image
ImageValidatorTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php
25 string references to 'Image'
CKEditor::getDefaultSettings in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
Implements \Drupal\editor\Plugin\EditPluginInterface::getDefaultSettings().
CKEditorAdminTest::testAdmin in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorAdminTest.php
CKEditorTest::getDefaultToolbarConfig in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorTest.php
editor.editor.basic_html.yml in drupal/core/profiles/standard/config/editor.editor.basic_html.yml
drupal/core/profiles/standard/config/editor.editor.basic_html.yml
editor.editor.full_html.yml in drupal/core/profiles/standard/config/editor.editor.full_html.yml
drupal/core/profiles/standard/config/editor.editor.full_html.yml

... See full list

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/Image.php, line 19

Namespace

Symfony\Component\Validator\Constraints
View source
class Image extends File {
  public $mimeTypes = 'image/*';
  public $minWidth = null;
  public $maxWidth = null;
  public $maxHeight = null;
  public $minHeight = null;
  public $mimeTypesMessage = 'This file is not a valid image.';
  public $sizeNotDetectedMessage = 'The size of the image could not be detected.';
  public $maxWidthMessage = 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.';
  public $minWidthMessage = 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.';
  public $maxHeightMessage = 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.';
  public $minHeightMessage = 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.';

}

Members

Namesort descending Modifiers Type Description Overrides
Constraint::$groups public property
Constraint::addImplicitGroupName public function Adds the given group if this constraint is in the Default group
Constraint::CLASS_CONSTRAINT constant Marks a constraint that can be put onto classes
Constraint::DEFAULT_GROUP constant The name of the group given to all constraints with no explicit group
Constraint::getDefaultOption public function Returns the name of the default option 12
Constraint::getRequiredOptions public function Returns the name of the required options 10
Constraint::getTargets public function Returns whether the constraint can be put onto classes, properties or both 7
Constraint::PROPERTY_CONSTRAINT constant Marks a constraint that can be put onto properties
Constraint::validatedBy public function Returns the name of the class that validates this constraint 2
Constraint::__construct public function Initializes the constraint with options. 10
Constraint::__set public function Unsupported operation.
File::$maxSize public property
File::$maxSizeMessage public property
File::$notFoundMessage public property
File::$notReadableMessage public property
File::$uploadCantWriteErrorMessage public property
File::$uploadErrorMessage public property
File::$uploadExtensionErrorMessage public property
File::$uploadFormSizeErrorMessage public property
File::$uploadIniSizeErrorMessage public property
File::$uploadNoFileErrorMessage public property
File::$uploadNoTmpDirErrorMessage public property
File::$uploadPartialErrorMessage public property
Image::$maxHeight public property
Image::$maxHeightMessage public property
Image::$maxWidth public property
Image::$maxWidthMessage public property
Image::$mimeTypes public property Overrides File::$mimeTypes
Image::$mimeTypesMessage public property Overrides File::$mimeTypesMessage
Image::$minHeight public property
Image::$minHeightMessage public property
Image::$minWidth public property
Image::$minWidthMessage public property
Image::$sizeNotDetectedMessage public property