Search for getFile

  1. Search 7.x for getFile
  2. Search 9.5.x for getFile
  3. Search 8.9.x for getFile
  4. Search 11.x for getFile
  5. Other projects
Title Object type File name Summary
AttributeClassDiscovery::getFileCacheSuffix function core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php Gets the file cache suffix.
AttributeDiscoveryWithAnnotations::getFileCacheSuffix function core/lib/Drupal/Core/Plugin/Discovery/AttributeDiscoveryWithAnnotations.php Gets the file cache suffix.
DatabaseDriver::getFilename function core/lib/Drupal/Core/Extension/DatabaseDriver.php Returns the filename of the extension's info file.
Extension::getFileInfo function core/lib/Drupal/Core/Extension/Extension.php Returns SplFileInfo instance for the extension's info 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.
FileUploadResult::getFile function core/modules/file/src/Upload/FileUploadResult.php Gets the File entity.
FileUploadSanitizeNameEvent::getFilename function core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php Gets the filename.
FileValidationException::getFilename function core/modules/file/src/Upload/FileValidationException.php Gets the file name.
FileValidatorSettingsTrait::getFileUploadValidators function core/modules/file/src/Validation/FileValidatorSettingsTrait.php Gets the upload validators for the specified 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().
FormUploadedFile::getFilename function core/modules/file/src/Upload/FormUploadedFile.php Gets the filename.
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::getFileHrefAccessibleOnNode function core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php Returns the href of a file, asserting it is accessible on the page.
InlineBlockPrivateFilesTest::getFileSecret function core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php Gets the text secret for a file.
InputStreamUploadedFile::getFilename function core/modules/file/src/Upload/InputStreamUploadedFile.php Gets the filename.
InstallStorage::getFilePath function core/lib/Drupal/Core/Config/InstallStorage.php Overrides Drupal\Core\Config\FileStorage::getFilePath().
Json::getFileExtension function core/lib/Drupal/Component/Serialization/Json.php Gets the file extension for this serialization format.
LocalStream::getFileSystem function core/lib/Drupal/Core/StreamWrapper/LocalStream.php Returns file system service.
MigrateFileGetIdsTest::getFileMigrationInfo function core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileGetIdsTest.php Returns information about the file to be migrated.
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
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.
SerializationInterface::getFileExtension function core/lib/Drupal/Component/Serialization/SerializationInterface.php Gets the file extension for this serialization format.
StaticReflectionClass::getFileName function core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionClass.php
TestSuiteBaseTest::getFilesystem function core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php Helper method to set up the file system.
TwigExtension::getFileUrl function core/lib/Drupal/Core/Template/TwigExtension.php Gets the file URL.
UploadedFileInterface::getFilename function core/modules/file/src/Upload/UploadedFileInterface.php Gets the filename.
Yaml::getFileExtension function core/lib/Drupal/Component/Serialization/Yaml.php Gets the file extension for this serialization format.
YamlPecl::getFileExtension function core/lib/Drupal/Component/Serialization/YamlPecl.php Gets the file extension for this serialization format.
YamlPeclTest::testGetFileExtension function core/tests/Drupal/Tests/Component/Serialization/YamlPeclTest.php @covers ::getFileExtension

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