Search for filename

  1. Search 7.x for filename
  2. Search 9.5.x for filename
  3. Search 10.3.x for filename
  4. Search 11.x for filename
  5. Other projects
Title Object type File name Summary
DrupalKernel::getModuleFileNames function core/lib/Drupal/Core/DrupalKernel.php Gets the file name for each enabled module.
drupal_get_filename function core/includes/bootstrap.inc Returns and optionally sets the filename for a system resource.
Extension::$filename property core/lib/Drupal/Core/Extension/Extension.php The filename of the main extension file (e.g., 'node.module').
Extension::getExtensionFilename function core/lib/Drupal/Core/Extension/Extension.php Returns the name of the main extension file, if any.
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::setFilename function core/modules/file/src/Entity/File.php Sets the name of the file.
FileInterface::getFilename function core/modules/file/src/FileInterface.php Returns the name of the file.
FileInterface::setFilename function core/modules/file/src/FileInterface.php Sets the name of the file.
FileManagedFileElementTest::testFileNameTrim function core/modules/file/tests/src/Functional/FileManagedFileElementTest.php Tests file names have leading . removed.
FileSystem::createFilename function core/lib/Drupal/Core/File/FileSystem.php Creates a full file path from a directory and filename.
FileSystem::getDestinationFilename function core/lib/Drupal/Core/File/FileSystem.php Determines the destination path for a file.
FileSystemInterface::createFilename function core/lib/Drupal/Core/File/FileSystemInterface.php Creates a full file path from a directory and filename.
FileSystemInterface::getDestinationFilename function core/lib/Drupal/Core/File/FileSystemInterface.php Determines the destination path for a file.
FileUploadResource::prepareFilename function core/modules/file/src/Plugin/rest/resource/FileUploadResource.php Prepares the filename to strip out any malicious extensions.
FileUploadResource::REQUEST_HEADER_FILENAME_REGEX constant core/modules/file/src/Plugin/rest/resource/FileUploadResource.php The regex used to extract the filename from the content disposition header.
FileUploadResourceTestBase::testFileUploadUnicodeFilename function core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php Tests using the file upload route with a unicode file name.
FileUploadTest::testFileUploadUnicodeFilename function core/modules/jsonapi/tests/src/Functional/FileUploadTest.php Tests using the file upload route with a unicode file name.
file_create_filename function core/includes/file.inc Creates a full file path from a directory and filename.
file_munge_filename function core/includes/file.inc Modifies a filename as needed for security purposes.
file_unmunge_filename function core/includes/file.inc Undoes the effect of file_munge_filename().
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.
MediaSource::$default_thumbnail_filename property core/modules/media/src/Annotation/MediaSource.php A filename for the default thumbnail.
MigrateFileTest::$tempFilename property core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php The filename of a file used to test temporary file migration.
MockFileFinder::$filename property core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php The only filename this finder ever returns.
SaveDataTest::testWithFilename function core/modules/file/tests/src/Kernel/SaveDataTest.php Test the file_save_data() function when a filename is provided.
SaveDataTest::testWithoutFilename function core/modules/file/tests/src/Kernel/SaveDataTest.php Test the file_save_data() function when no filename is provided.
SaveUploadTest::testInvalidUtf8FilenameUpload function core/modules/file/tests/src/Functional/SaveUploadTest.php Tests that filenames containing invalid UTF-8 are rejected.
TemporaryJsonapiFileFieldUploader::prepareFilename function core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php Prepares the filename to strip out any malicious extensions.
TemporaryJsonapiFileFieldUploader::REQUEST_HEADER_FILENAME_REGEX constant core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php The regex used to extract the filename from the content disposition header.
TwigEnvironmentTest::testCacheFilename function core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php Ensures that cacheFilename() varies by extensions + deployment identifier.
TwigPhpStorageCache::$templateCacheFilenamePrefix property core/lib/Drupal/Core/Template/TwigPhpStorageCache.php The template cache filename prefix.
UpdateRegistry::$logFilename property core/lib/Drupal/Core/Update/UpdateRegistry.php The filename of the log file.
UpdateUploadTest::testFileNameExtensionMerging function core/modules/update/tests/src/Functional/UpdateUploadTest.php Ensures that archiver extensions are properly merged in the UI.
YamlDiscoveryTest::testFilenameForBrokenYml function core/tests/Drupal/Tests/Core/Discovery/YamlDiscoveryTest.php Tests if filename is output for a broken YAML file.

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