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 10.3.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
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::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::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.
UsageTest::testFileUsageWithEntityTranslation function core/modules/file/tests/src/Kernel/UsageTest.php Tests file usage with translated entities.
UsageTest::testTempFileCleanupDefault function core/modules/file/tests/src/Kernel/UsageTest.php Ensure that temporary files are removed by default.
UsageTest::testTempFileCustomCleanup function core/modules/file/tests/src/Kernel/UsageTest.php Ensure that temporary files are kept as configured.
UsageTest::testTempFileNoCleanup function core/modules/file/tests/src/Kernel/UsageTest.php Ensure that temporary files are kept as configured.
UserPictureFile class core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php Drupal 6 user picture source from database.
UserPictureFile.php file core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php
UserPictureFile::$filePath property core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php The file directory path.
UserPictureFile::$tempFilePath property core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php The temporary file path.
UserPictureFile::fields function core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php Returns available fields on the source.
UserPictureFile::getIds function core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php Defines the source fields uniquely identifying a source row.
UserPictureFile::initializeIterator function core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php Initializes the iterator with the source data.
UserPictureFile::prepareRow function core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php Adds additional data to the row.
UserPictureFile::query function core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php
UserPictureFileTest class core/modules/user/tests/src/Kernel/Plugin/migrate/source/d6/UserPictureFileTest.php Tests the d6_user_picture_file source plugin.
UserPictureFileTest.php file core/modules/user/tests/src/Kernel/Plugin/migrate/source/d6/UserPictureFileTest.php
UserPictureFileTest::$modules property core/modules/user/tests/src/Kernel/Plugin/migrate/source/d6/UserPictureFileTest.php Modules to install.
UserPictureFileTest::providerSource function core/modules/user/tests/src/Kernel/Plugin/migrate/source/d6/UserPictureFileTest.php
UserUpdateRoleMigrateTest::setDatabaseDumpFiles function core/modules/user/tests/src/Functional/Update/UserUpdateRoleMigrateTest.php Set database dump files to be used.

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