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 10.3.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.
ExtractorTest::testGetFilesFromSourcesExceptionRelativePath function core/tests/Drupal/Tests/Core/Theme/Icon/Plugin/ExtractorTest.php Test the IconExtractorWithFinder::getFilesFromSources method.
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.
IconExtractorWithFinder::getFilesFromSources function core/lib/Drupal/Core/Theme/Icon/IconExtractorWithFinder.php Create files data from sources config.
IconExtractorWithFinderInterface::getFilesFromSources function core/lib/Drupal/Core/Theme/Icon/IconExtractorWithFinderInterface.php Create files data from sources config.
IconFinder::getFileContents function core/lib/Drupal/Core/Theme/Icon/IconFinder.php Wrapper to the file_get_contents function.
IconFinder::getFileFromUrl function core/lib/Drupal/Core/Theme/Icon/IconFinder.php Get filename from an URL source.
IconFinder::getFilesFromPath function core/lib/Drupal/Core/Theme/Icon/IconFinder.php Get files from a local path.
IconFinder::getFilesFromSources function core/lib/Drupal/Core/Theme/Icon/IconFinder.php Create files from source paths.
IconFinderInterface::getFileContents function core/lib/Drupal/Core/Theme/Icon/IconFinderInterface.php Wrapper to the file_get_contents function.
IconFinderInterface::getFilesFromSources function core/lib/Drupal/Core/Theme/Icon/IconFinderInterface.php Create files from source paths.
IconFinderTest::providerGetFileContents function core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php Data provider for ::testGetFileContents().
IconFinderTest::providerGetFilesFromSourcesPath function core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php Data provider for ::testGetFilesFromSourcesPath().
IconFinderTest::providerGetFilesFromSourcesUrl function core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php Data provider for ::testGetFilesFromSourcesUrl().
IconFinderTest::testGetFileContents function core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php Test the IconFinder::getFileContents method.
IconFinderTest::testGetFileFromUrlWarning function core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php Test the IconFinder::getFileFromUrl method with warning.
IconFinderTest::testGetFilesFromPathEmptyWarning function core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php Test the IconFinder::getFilesFromPath method with warning.
IconFinderTest::testGetFilesFromPathInvalidExtensionWarning function core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php Test the IconFinder::getFilesFromPath method with warning.
IconFinderTest::testGetFilesFromSourcesPath function core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php Test the IconFinder::getFilesFromSources method with paths.
IconFinderTest::testGetFilesFromSourcesUrl function core/tests/Drupal/Tests/Core/Theme/Icon/IconFinderTest.php Test the IconFinder::getFilesFromSources method with urls.
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.

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