Search for fileName

  1. Search 7.x for fileName
  2. Search 8.9.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
CKEditor5ImageController::prepareFilename function core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php Prepares the filename to strip out any malicious extensions.
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.
FileRepositoryTest::testWithFilename function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests the writeData() method.
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.
FileUploadResult::$originalFilename property core/modules/file/src/Upload/FileUploadResult.php The original filename.
FileUploadResult::$sanitizedFilename property core/modules/file/src/Upload/FileUploadResult.php The sanitized filename.
FileUploadResult::getOriginalFilename function core/modules/file/src/Upload/FileUploadResult.php Gets the original filename.
FileUploadResult::getSanitizedFilename function core/modules/file/src/Upload/FileUploadResult.php Gets the sanitized filename.
FileUploadResult::setOriginalFilename function core/modules/file/src/Upload/FileUploadResult.php Sets the original filename.
FileUploadResult::setSanitizedFilename function core/modules/file/src/Upload/FileUploadResult.php Sets the sanitized filename.
FileUploadSanitizeNameEvent::$filename property core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php The name of the file being uploaded.
FileUploadSanitizeNameEvent::getFilename function core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php Gets the filename.
FileUploadSanitizeNameEvent::setFilename function core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php Sets the filename.
FileUploadSanitizeNameEventTest::provideFilenames function core/tests/Drupal/Tests/Core/File/FileUploadSanitizeNameEventTest.php Provides data for testEventFilenameFunctions().
FileUploadSanitizeNameEventTest::testEventFilenameFunctions function core/tests/Drupal/Tests/Core/File/FileUploadSanitizeNameEventTest.php Test event construction.
FileUploadSanitizeNameEventTest::testSetFilename function core/tests/Drupal/Tests/Core/File/FileUploadSanitizeNameEventTest.php @covers ::setFilename
@covers ::getFilename
FileUploadSanitizeNameEventTest::testSetFilenameException function core/tests/Drupal/Tests/Core/File/FileUploadSanitizeNameEventTest.php @covers ::setFilename
FileUploadTest::testFileUploadUnicodeFilename function core/modules/jsonapi/tests/src/Functional/FileUploadTest.php Tests using the file upload route with a unicode file name.
FileValidationException::$fileName property core/modules/file/src/Upload/FileValidationException.php The file name.
FileValidationException::getFilename function core/modules/file/src/Upload/FileValidationException.php Gets the file name.
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().
FormUploadedFile::getFilename function core/modules/file/src/Upload/FormUploadedFile.php Gets the 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::testDrupalGetFilename function core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php Tests drupal_get_filename() deprecation.
GetFilenameTest::testDrupalGetPath function core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php Tests drupal_get_path() deprecation.
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.
SaveUploadTest::testInvalidUtf8FilenameUpload function core/modules/file/tests/src/Functional/SaveUploadTest.php Tests that filenames containing invalid UTF-8 are rejected.
SecurityFileUploadEventSubscriberTest::provideFilenames function core/modules/system/tests/src/Unit/Event/SecurityFileUploadEventSubscriberTest.php Provides data for testSanitizeName().
SecurityFileUploadEventSubscriberTest::provideFilenamesNoMunge function core/modules/system/tests/src/Unit/Event/SecurityFileUploadEventSubscriberTest.php Provides data for testSanitizeNameNoMunge().
StaticReflectionClass::getFileName function core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionClass.php

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