Search for valid

  1. Search 7.x for valid
  2. Search 9.5.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
FileFieldValidateTest class core/modules/file/tests/src/Functional/FileFieldValidateTest.php Tests validation functions such as file type, max file size, max size per
node, and required.
FileFieldValidateTest.php file core/modules/file/tests/src/FunctionalJavascript/FileFieldValidateTest.php
FileFieldValidateTest.php file core/modules/file/tests/src/Functional/FileFieldValidateTest.php
FileFieldValidateTest::$defaultTheme property core/modules/file/tests/src/FunctionalJavascript/FileFieldValidateTest.php The theme to install as the default for testing.
FileFieldValidateTest::$defaultTheme property core/modules/file/tests/src/Functional/FileFieldValidateTest.php The theme to install as the default for testing.
FileFieldValidateTest::$modules property core/modules/file/tests/src/FunctionalJavascript/FileFieldValidateTest.php Modules to enable.
FileFieldValidateTest::testAjaxValidationMessage function core/modules/file/tests/src/FunctionalJavascript/FileFieldValidateTest.php Test the validation message is displayed only once for ajax uploads.
FileFieldValidateTest::testAssertFileExistsDeprecation function core/modules/file/tests/src/Functional/FileFieldValidateTest.php Tests deprecation of the assertFileExists and assertFileNotExists methods.
FileFieldValidateTest::testFileExtension function core/modules/file/tests/src/Functional/FileFieldValidateTest.php Tests file extension checking.
FileFieldValidateTest::testFileMaxSize function core/modules/file/tests/src/Functional/FileFieldValidateTest.php Tests the max file size validator.
FileFieldValidateTest::testFileRemoval function core/modules/file/tests/src/Functional/FileFieldValidateTest.php Checks that a file can always be removed if it does not pass validation.
FileFieldValidateTest::testRequired function core/modules/file/tests/src/Functional/FileFieldValidateTest.php Tests the required property on file fields.
FileFieldWidgetTest::testWidgetValidation function core/modules/file/tests/src/Functional/FileFieldWidgetTest.php Tests validation with the Upload button.
FileItem::getUploadValidators function core/modules/file/src/Plugin/Field/FieldType/FileItem.php Retrieves the upload validators for a file field.
FileItem::validateDirectory function core/modules/file/src/Plugin/Field/FieldType/FileItem.php Form API callback
FileItem::validateExtensions function core/modules/file/src/Plugin/Field/FieldType/FileItem.php Form API callback.
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.
FileSelection::validateReferenceableNewEntities function core/modules/file/src/Plugin/EntityReferenceSelection/FileSelection.php Validates which newly created entities can be referenced.
FileSystem::validScheme function core/lib/Drupal/Core/File/FileSystem.php Checks that the scheme of a stream URI is valid.
FileSystemDeprecationTest::testDeprecatedValidScheme function core/tests/Drupal/KernelTests/Core/File/FileSystemDeprecationTest.php @expectedDeprecation file_stream_wrapper_valid_scheme() is deprecated in drupal:8.0.0 and will be removed before drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidScheme() instead. See https://www.drupal.org/node/3035273
FileSystemDeprecationTest::testDeprecatedValidUri function core/tests/Drupal/KernelTests/Core/File/FileSystemDeprecationTest.php @expectedDeprecation file_valid_uri() is deprecated in drupal:8.8.0 and will be removed before drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidUri() instead. See https://www.drupal.org/node/3035273
FileSystemInterface::validScheme function core/lib/Drupal/Core/File/FileSystemInterface.php Checks that the scheme of a stream URI is valid.
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.
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

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