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 10.3.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 install.
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.
FileNameLengthConstraintValidator class core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraintValidator.php Validates the file name length constraint.
FileNameLengthConstraintValidator.php file core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraintValidator.php
FileNameLengthConstraintValidator::validate function core/modules/file/src/Plugin/Validation/Constraint/FileNameLengthConstraintValidator.php
FileNameLengthConstraintValidatorTest class core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileNameLengthConstraintValidatorTest.php Tests the FileNameLengthConstraintValidator.
FileNameLengthConstraintValidatorTest.php file core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileNameLengthConstraintValidatorTest.php
FileNameLengthConstraintValidatorTest::testFileValidateNameLength function core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileNameLengthConstraintValidatorTest.php This will ensure the filename length is valid.
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.
FileSizeLimitConstraintValidator class core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php Validates the FileSizeLimitConstraint.
FileSizeLimitConstraintValidator.php file core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php
FileSizeLimitConstraintValidator::create function core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php Instantiates a new instance of this class.
FileSizeLimitConstraintValidator::validate function core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php
FileSizeLimitConstraintValidator::__construct function core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php Creates a new FileSizeConstraintValidator.
FileSizeLimitConstraintValidatorTest class core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileSizeLimitConstraintValidatorTest.php Tests the FileSizeLimitConstraintValidator.
FileSizeLimitConstraintValidatorTest.php file core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileSizeLimitConstraintValidatorTest.php
FileSizeLimitConstraintValidatorTest::testFileValidateSize function core/modules/file/tests/src/Kernel/Plugin/Validation/Constraint/FileSizeLimitConstraintValidatorTest.php @covers ::validate
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::$fileValidator property core/modules/file/src/Upload/FileUploadHandler.php The file validator.
FileUploadHandler::handleExtensionValidation function core/modules/file/src/Upload/FileUploadHandler.php Gets the list of allowed extensions and updates the validators.
FileUploadResource::validateAndLoadFieldDefinition function core/modules/file/src/Plugin/rest/resource/FileUploadResource.php Validates and loads a field definition instance.
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
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.

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