Search for valid

  1. Search 7.x for valid
  2. Search 9.5.x for valid
  3. Search 8.9.x for valid
  4. Search 11.x for valid
  5. Other projects
Title Object type File name Summary
FileUploadResource::validateAndParseContentDispositionHeader function core/modules/file/src/Plugin/rest/resource/FileUploadResource.php Validates and extracts the filename from the Content-Disposition header.
FileUploadResourceTestBase::testFileUploadInvalidFileType function core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php Tests using the file upload route with an invalid file type.
FileUploadResourceTestBase::testPostFileUploadInvalidHeaders function core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php Tests using the file upload POST route with invalid headers.
FileUploadTest::testFileUploadInvalidFileType function core/modules/jsonapi/tests/src/Functional/FileUploadTest.php Tests using the file upload route with an invalid file type.
FileUploadTest::testInvalidFileUploads function core/modules/jsonapi/tests/src/Functional/FileUploadTest.php Tests invalid file uploads.
FileUploadTest::testPostFileUploadInvalidHeaders function core/modules/jsonapi/tests/src/Functional/FileUploadTest.php Tests using the file upload POST route with invalid headers.
FileUriUnique::validatedBy function core/modules/file/src/Plugin/Validation/Constraint/FileUriUnique.php Returns the name of the class that validates this constraint.
FileValidationConstraint class core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraint.php Validation File constraint.
FileValidationConstraint.php file core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraint.php
FileValidationConstraintValidator class core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php Checks that a file referenced in a file field is valid.
FileValidationConstraintValidator.php file core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php
FileValidationConstraintValidator::create function core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php Instantiates a new instance of this class.
FileValidationConstraintValidator::validate function core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php
FileValidationConstraintValidator::__construct function core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php Creates a new FileValidationConstraintValidator.
FileValidationEvent class core/modules/file/src/Validation/FileValidationEvent.php Event for file validations.
FileValidationEvent.php file core/modules/file/src/Validation/FileValidationEvent.php
FileValidationEvent::__construct function core/modules/file/src/Validation/FileValidationEvent.php Creates a new FileValidationEvent.
FileValidationException class core/modules/file/src/Upload/FileValidationException.php Provides an exception for upload validation errors.
FileValidationException.php file core/modules/file/src/Upload/FileValidationException.php
FileValidationException::$errors property core/modules/file/src/Upload/FileValidationException.php The validation errors.
FileValidationException::$fileName property core/modules/file/src/Upload/FileValidationException.php The file name.
FileValidationException::getErrors function core/modules/file/src/Upload/FileValidationException.php Gets the errors.
FileValidationException::getFilename function core/modules/file/src/Upload/FileValidationException.php Gets the file name.
FileValidationException::__construct function core/modules/file/src/Upload/FileValidationException.php Constructs a new FileValidationException.
FileValidationTestSubscriber class core/modules/file/tests/modules/file_validator_test/src/EventSubscriber/FileValidationTestSubscriber.php Provides a validation listener for file validation tests.
FileValidationTestSubscriber.php file core/modules/file/tests/modules/file_validator_test/src/EventSubscriber/FileValidationTestSubscriber.php
FileValidationTestSubscriber::getSubscribedEvents function core/modules/file/tests/modules/file_validator_test/src/EventSubscriber/FileValidationTestSubscriber.php
FileValidationTestSubscriber::onFileValidation function core/modules/file/tests/modules/file_validator_test/src/EventSubscriber/FileValidationTestSubscriber.php Handles the file validation event.
FileValidator class core/modules/file/src/Validation/FileValidator.php Provides a class for file validation.
FileValidator.php file core/modules/file/src/Validation/FileValidator.php
FileValidator::validate function core/modules/file/src/Validation/FileValidator.php
FileValidator::__construct function core/modules/file/src/Validation/FileValidator.php Creates a new FileValidator.
FileValidatorInterface interface core/modules/file/src/Validation/FileValidatorInterface.php Provides a file validator that supports a list of validations.
FileValidatorInterface.php file core/modules/file/src/Validation/FileValidatorInterface.php
FileValidatorInterface::validate function core/modules/file/src/Validation/FileValidatorInterface.php Validates a File with a list of validators.
FileValidatorSettingsTrait trait core/modules/file/src/Validation/FileValidatorSettingsTrait.php Provides a trait to create validators from settings.
FileValidatorSettingsTrait.php file core/modules/file/src/Validation/FileValidatorSettingsTrait.php
FileValidatorSettingsTrait::getFileUploadValidators function core/modules/file/src/Validation/FileValidatorSettingsTrait.php Gets the upload validators for the specified settings.
FileValidatorTest class core/modules/file/tests/src/Kernel/Validation/FileValidatorTest.php Tests the file validator.
FileValidatorTest.php file core/modules/file/tests/src/Kernel/Validation/FileValidatorTest.php
FileValidatorTest::$modules property core/modules/file/tests/src/Kernel/Validation/FileValidatorTest.php Modules to install.
FileValidatorTest::testValidate function core/modules/file/tests/src/Kernel/Validation/FileValidatorTest.php Tests the validator.
FileValidatorTestBase class core/modules/file/tests/src/Kernel/Validation/FileValidatorTestBase.php Provides a base file constraint validator test.
FileValidatorTestBase.php file core/modules/file/tests/src/Kernel/Validation/FileValidatorTestBase.php
FileValidatorTestBase::$file property core/modules/file/tests/src/Kernel/Validation/FileValidatorTestBase.php The file.
FileValidatorTestBase::$modules property core/modules/file/tests/src/Kernel/Validation/FileValidatorTestBase.php Modules to install.
FileValidatorTestBase::$validator property core/modules/file/tests/src/Kernel/Validation/FileValidatorTestBase.php The file validator.
FileValidatorTestBase::setUp function core/modules/file/tests/src/Kernel/Validation/FileValidatorTestBase.php
FileWidget::validateMultipleCount function core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php Validates the number of uploaded files.
file_test_validator function core/modules/file/tests/file_test/file_test.module Helper validator that returns the $errors parameter.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.