Search for getFile

  1. Search 7.x for getFile
  2. Search 9.5.x for getFile
  3. Search 10.3.x for getFile
  4. Search 11.x for getFile
  5. Other projects
Title Object type File name Summary
AssetDumper::getFileSystem function core/lib/Drupal/Core/Asset/AssetDumper.php Helper method for returning the file system service.
BootstrapConfigStorageFactory::getFileStorage function core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php Returns a File-based configuration storage implementation.
CKEditorPluginInterface::getFile function core/modules/ckeditor/src/CKEditorPluginInterface.php Returns the Drupal root-relative file path to the plugin JavaScript file.
DrupalImage::getFile function core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php Returns the Drupal root-relative file path to the plugin JavaScript file.
DrupalImageCaption::getFile function core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php Returns the Drupal root-relative file path to the plugin JavaScript file.
DrupalLink::getFile function core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalLink.php Returns the Drupal root-relative file path to the plugin JavaScript file.
DrupalMedia::getFile function core/modules/media/src/Plugin/CKEditorPlugin/DrupalMedia.php Returns the Drupal root-relative file path to the plugin JavaScript file.
DrupalMediaLibrary::getFile function core/modules/media_library/src/Plugin/CKEditorPlugin/DrupalMediaLibrary.php Returns the Drupal root-relative file path to the plugin JavaScript file.
Extension::getFilename function core/lib/Drupal/Core/Extension/Extension.php Returns the filename of the extension's info file.
File::getFilename function core/modules/file/src/Entity/File.php Returns the name of the file.
File::getFileUri function core/modules/file/src/Entity/File.php Returns the URI of the file.
FileAccessControlHandler::getFileReferences function core/modules/file/src/FileAccessControlHandler.php Wrapper for file_get_file_references().
FileInterface::getFilename function core/modules/file/src/FileInterface.php Returns the name of the file.
FileInterface::getFileUri function core/modules/file/src/FileInterface.php Returns the URI of the file.
FileItemValidationTest::getFileTypes function core/modules/file/tests/src/Kernel/FileItemValidationTest.php Provides a list of file types to test.
FileMigrationSetupTrait::getFileMigrationInfo function core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php Returns information about the file to be migrated.
FileStorage::getFileExtension function core/lib/Drupal/Core/Config/FileStorage.php Returns the file extension used by the file storage for all configuration files.
FileStorage::getFilePath function core/lib/Drupal/Core/Config/FileStorage.php Returns the path to the configuration file.
FileStorage::getFileSystem function core/lib/Drupal/Core/Config/FileStorage.php Returns file system service.
FileTransferAuthorizeForm::getFiletransfer function core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php Gets a FileTransfer class for a specific transfer method and settings.
FollowUpMigrationsTest::getFileMigrationInfo function core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php Returns information about the file to be migrated.
FormBuilder::getFileUploadMaxSize function core/lib/Drupal/Core/Form/FormBuilder.php Wraps file_upload_max_size().
GetFilenameTest class core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php Tests that drupal_get_filename() works correctly.
GetFilenameTest.php file core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php
GetFilenameTest::$modules property core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php Modules to enable.
GetFilenameTest::register function core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php Registers test-specific services.
GetFilenameTest::testDrupalGetFilename function core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php Tests that drupal_get_filename() works when the file is not in database.
Handler::getFileMappingsFromPackages function composer/Plugin/Scaffold/Handler.php Gets a consolidated list of file mappings from all allowed packages.
Image::getFileSize function core/lib/Drupal/Core/Image/Image.php Returns the size of the image file.
ImageInterface::getFileSize function core/lib/Drupal/Core/Image/ImageInterface.php Returns the size of the image file.
ImageTest::testGetFileSize function core/tests/Drupal/Tests/Core/Image/ImageTest.php Tests \Drupal\Core\Image\Image::getFileSize
InlineBlockPrivateFilesTest::getFileSecret function core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php Gets the text secret for a file.
InstallStorage::getFilePath function core/lib/Drupal/Core/Config/InstallStorage.php Overrides Drupal\Core\Config\FileStorage::getFilePath().
Internal::getFile function core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php Returns the Drupal root-relative file path to the plugin JavaScript file.
Json::getFileExtension function core/lib/Drupal/Component/Serialization/Json.php Gets the file extension for this serialization format.
Language::getFile function core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php Returns the Drupal root-relative file path to the plugin JavaScript file.
Llama::getFile function core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/Llama.php Returns the Drupal root-relative file path to the plugin JavaScript file.
LlamaButton::getFile function core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php Returns the Drupal root-relative file path to the plugin JavaScript file.
LlamaContextual::getFile function core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php Returns the Drupal root-relative file path to the plugin JavaScript file.
LlamaContextualAndButton::getFile function core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php Returns the Drupal root-relative file path to the plugin JavaScript file.
LlamaCss::getFile function core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php Returns the Drupal root-relative file path to the plugin JavaScript file.
LocalStream::getFileSystem function core/lib/Drupal/Core/StreamWrapper/LocalStream.php Returns file system service.
MigrateFileTest::getFileMigrationInfo function core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php Returns information about the file to be migrated.
MigrateNodeCompleteTest::getFileMigrationInfo function core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php Returns information about the file to be migrated.
MigrateNodeRevisionTest::getFileMigrationInfo function core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeRevisionTest.php Returns information about the file to be migrated.
MigrateNodeTest::getFileMigrationInfo function core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php Returns information about the file to be migrated.
MigratePrivateFileTest::getFileMigrationInfo function core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php Returns information about the file to be migrated.
PhpSerialize::getFileExtension function core/lib/Drupal/Component/Serialization/PhpSerialize.php Gets the file extension for this serialization format.
Routes::getFileUploadRouteName function core/modules/jsonapi/src/Routing/Routes.php Get a unique route name for the file upload resource type and route type.
Routes::getFileUploadRoutesForResourceType function core/modules/jsonapi/src/Routing/Routes.php Gets the file upload route collection for the given resource type.

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