Search for file

  1. Search 7.x for file
  2. Search 9.5.x for file
  3. Search 8.9.x for file
  4. Search 11.x for file
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
File class core/modules/media/src/Plugin/media/Source/File.php File entity media source.
File class core/modules/file/src/Entity/File.php Defines the file entity class.
File class core/modules/file/src/Plugin/views/field/File.php Field handler to provide simple renderer that allows linking to a file.
File class core/modules/file/src/Plugin/views/wizard/File.php Tests creating managed files views with the wizard.
File class core/modules/file/src/Plugin/migrate/source/d6/File.php Drupal 6 file source from database.
File class core/modules/file/src/Plugin/migrate/source/d7/File.php Drupal 7 file source from database.
File class core/lib/Drupal/Core/Render/Element/File.php Provides a form element for uploading a file.

All search results

Title Object type File name Summary
UploadedFileConstraint::$uploadPartialErrorMessage property core/modules/file/src/Validation/Constraint/UploadedFileConstraint.php The upload partial error message.
UploadedFileConstraintValidator class core/modules/file/src/Validation/Constraint/UploadedFileConstraintValidator.php Constraint validator for uploaded files.
UploadedFileConstraintValidator.php file core/modules/file/src/Validation/Constraint/UploadedFileConstraintValidator.php
UploadedFileConstraintValidator::validate function core/modules/file/src/Validation/Constraint/UploadedFileConstraintValidator.php
UploadedFileConstraintValidatorTest class core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php Tests the uploaded file validator.
UploadedFileConstraintValidatorTest.php file core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php
UploadedFileConstraintValidatorTest::$filename property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php The file name.
UploadedFileConstraintValidatorTest::$maxSize property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php The max 4 MB filesize to use for testing.
UploadedFileConstraintValidatorTest::$modules property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php Modules to install.
UploadedFileConstraintValidatorTest::$path property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php The temporary file path.
UploadedFileConstraintValidatorTest::$validator property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php A validator.
UploadedFileConstraintValidatorTest::setUp function core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php
UploadedFileConstraintValidatorTest::testValidateFail function core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php @covers ::validate
@dataProvider validateProvider
UploadedFileConstraintValidatorTest::testValidateSuccess function core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php @covers ::validate
UploadedFileConstraintValidatorTest::validateProvider function core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php Data provider for ::testValidateFail.
UploadedFileInterface interface core/modules/file/src/Upload/UploadedFileInterface.php Provides an interface for uploaded files.
UploadedFileInterface.php file core/modules/file/src/Upload/UploadedFileInterface.php
UploadedFileInterface::getClientOriginalName function core/modules/file/src/Upload/UploadedFileInterface.php Returns the original file name.
UploadedFileInterface::getError function core/modules/file/src/Upload/UploadedFileInterface.php Returns the upload error code.
UploadedFileInterface::getErrorMessage function core/modules/file/src/Upload/UploadedFileInterface.php Returns an informative upload error message.
UploadedFileInterface::getFilename function core/modules/file/src/Upload/UploadedFileInterface.php Gets the filename.
UploadedFileInterface::getPathname function core/modules/file/src/Upload/UploadedFileInterface.php Gets the path to the file.
UploadedFileInterface::getRealPath function core/modules/file/src/Upload/UploadedFileInterface.php Gets the absolute path to the file.
UploadedFileInterface::getSize function core/modules/file/src/Upload/UploadedFileInterface.php Gets file size.
UploadedFileInterface::isValid function core/modules/file/src/Upload/UploadedFileInterface.php Returns whether the file was uploaded successfully.
UploadedFileInterface::validate function core/modules/file/src/Upload/UploadedFileInterface.php Validates the uploaded file information.
UploadedFileValidator class core/modules/file/src/Validation/UploadedFileValidator.php Validator for uploaded files.
UploadedFileValidator.php file core/modules/file/src/Validation/UploadedFileValidator.php
UploadedFileValidator::$validator property core/modules/file/src/Validation/UploadedFileValidator.php The symfony validator.
UploadedFileValidator::getValidator function core/modules/file/src/Validation/UploadedFileValidator.php Get the Symfony validator instance.
UploadedFileValidator::validate function core/modules/file/src/Validation/UploadedFileValidator.php Validates an uploaded file.
UploadedFileValidator::__construct function core/modules/file/src/Validation/UploadedFileValidator.php Creates a new UploadedFileValidator.
UploadedFileValidatorInterface interface core/modules/file/src/Validation/UploadedFileValidatorInterface.php Validator for uploaded files.
UploadedFileValidatorInterface.php file core/modules/file/src/Validation/UploadedFileValidatorInterface.php
UploadedFileValidatorInterface::validate function core/modules/file/src/Validation/UploadedFileValidatorInterface.php Validates an uploaded file.
UploadedFileValidatorTest class core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php Tests the uploaded file validator.
UploadedFileValidatorTest.php file core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php
UploadedFileValidatorTest::$filename property core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php The file name.
UploadedFileValidatorTest::$maxSize property core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php The max 4 MB filesize to use for testing.
UploadedFileValidatorTest::$modules property core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php Modules to enable.
UploadedFileValidatorTest::$path property core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php The temporary file path.
UploadedFileValidatorTest::$validator property core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php The validator under test.
UploadedFileValidatorTest::setUp function core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php
UploadedFileValidatorTest::testValidateFail function core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php @covers ::validate
@dataProvider validateProvider
UploadedFileValidatorTest::testValidateSuccess function core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php @covers ::validate
UploadedFileValidatorTest::validateProvider function core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php Data provider for ::testValidateFail.
UrlTest::$profile property core/modules/system/tests/src/Functional/Form/UrlTest.php The profile to install as a basis for testing.
UrlTransformRelativeTest::providerFileUrlTransformRelative function core/tests/Drupal/KernelTests/Core/File/UrlTransformRelativeTest.php
UrlTransformRelativeTest::testFileUrlTransformRelative function core/tests/Drupal/KernelTests/Core/File/UrlTransformRelativeTest.php Tests transformRelative() function.
UsageTest::createTempFiles function core/modules/file/tests/src/Kernel/UsageTest.php Create files for all the possible combinations of age and status.

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