Search for valid

  1. Search 7.x for valid
  2. Search 8.9.x for valid
  3. Search 10.3.x for valid
  4. Search 11.x for valid
  5. Other projects
Title Object type File name Summary
FileItem::validateMaxFilesize function core/modules/file/src/Plugin/Field/FieldType/FileItem.php Form API callback.
FileItemValidationTest class core/modules/file/tests/src/Kernel/FileItemValidationTest.php Tests that files referenced in file and image fields are always validated.
FileItemValidationTest.php file core/modules/file/tests/src/Kernel/FileItemValidationTest.php
FileItemValidationTest::$modules property core/modules/file/tests/src/Kernel/FileItemValidationTest.php Modules to enable.
FileItemValidationTest::$user property core/modules/file/tests/src/Kernel/FileItemValidationTest.php A user.
FileItemValidationTest::getFileTypes function core/modules/file/tests/src/Kernel/FileItemValidationTest.php Provides a list of file types to test.
FileItemValidationTest::setUp function core/modules/file/tests/src/Kernel/FileItemValidationTest.php
FileItemValidationTest::testFileValidationConstraint function core/modules/file/tests/src/Kernel/FileItemValidationTest.php @covers \Drupal\file\Plugin\Validation\Constraint\FileValidationConstraint
@covers \Drupal\file\Plugin\Validation\Constraint\FileValidationConstraintValidator
@dataProvider getFileTypes
FileManagedFileElementTest::testUnusedPermanentFileValidation function core/modules/file/tests/src/Functional/FileManagedFileElementTest.php Verify that unused permanent files can be used.
FileRepositoryTest::testInvalidStreamWrapper function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests for an invalid stream wrapper.
FileSelection::validateReferenceableNewEntities function core/modules/file/src/Plugin/EntityReferenceSelection/FileSelection.php Validates which newly created entities can be referenced.
FileSystemTest::testInvalidUTF8 function core/tests/Drupal/Tests/Core/File/FileSystemTest.php Tests that invalid UTF-8 results in an exception.
FileTestForm::validateForm function core/modules/file/tests/file_test/src/Form/FileTestForm.php Form validation handler.
FileTestSaveUploadFromForm::validateForm function core/modules/file/tests/file_test/src/Form/FileTestSaveUploadFromForm.php Form validation handler.
FileTransferAuthorizeForm::validateForm function core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php Form validation handler.
FileUpload::validateAndLoadFieldDefinition function core/modules/jsonapi/src/Controller/FileUpload.php Validates and loads a field definition instance.
FileUploadForm::validateUploadElement function core/modules/media_library/src/Form/FileUploadForm.php Validates the upload element.
FileUploadHandler::handleExtensionValidation function core/modules/file/src/Upload/FileUploadHandler.php Gets the list of allowed extensions and updates the validators.
FileUploadResource::getUploadValidators function core/modules/file/src/Plugin/rest/resource/FileUploadResource.php Retrieves the upload validators for a field definition.
FileUploadResource::validate function core/modules/file/src/Plugin/rest/resource/FileUploadResource.php Validates the file.
FileUploadResource::validateAndLoadFieldDefinition function core/modules/file/src/Plugin/rest/resource/FileUploadResource.php Validates and loads a field definition instance.
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::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
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::validate function core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php
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.
FileWidget::validateMultipleCount function core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php Validates the number of uploaded files.
file_test_file_validate function core/modules/file/tests/file_test/file_test.module Implements hook_file_validate().
file_test_validator function core/modules/file/tests/file_test/file_test.module Helper validator that returns the $errors parameter.
file_validate function core/modules/file/file.module Checks that a file meets the criteria specified by the validators.
file_validate_extensions function core/modules/file/file.module Checks that the filename ends with an allowed extension.
file_validate_image_resolution function core/modules/file/file.module Verifies that image dimensions are within the specified maximum and minimum.
file_validate_is_image function core/modules/file/file.module Checks that the file is recognized as a valid image.
file_validate_name_length function core/modules/file/file.module Checks for files with names longer than can be stored in the database.
file_validate_size function core/modules/file/file.module Checks that the file's size is below certain limits.
filter.uninstall_validator service core/modules/filter/filter.services.yml Drupal\filter\FilterUninstallValidator
FilterDateTest::_testUiValidation function core/modules/views/tests/src/Functional/Handler/FilterDateTest.php Make sure the validation callbacks works.

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