Search for fileName

  1. Search 7.x for fileName
  2. Search 9.5.x for fileName
  3. Search 8.9.x for fileName
  4. Search 10.3.x for fileName
  5. Other projects
Title Object type File name Summary
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.
FormUploadedFile::getFilename function core/modules/file/src/Upload/FormUploadedFile.php Gets the filename.
InputStreamUploadedFile::getFilename function core/modules/file/src/Upload/InputStreamUploadedFile.php Gets the filename.
InstallerTranslationNonStandardFilenamesTest class core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php Tests non-standard named translation files get imported during install.
InstallerTranslationNonStandardFilenamesTest.php file core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php
InstallerTranslationNonStandardFilenamesTest::prepareEnvironment function core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php Prepares the current environment for running the test.
InstallerTranslationNonStandardFilenamesTest::prepareSettings function core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationNonStandardFilenamesTest.php Prepares site settings and services before installation.
LegacyFileSystemTest::testGetDestinationFilenameWithDeprecatedFileExists function core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php @covers ::getDestinationFilename
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.
SanitizeNameTest::provideFilenames function core/modules/file/tests/src/Unit/SanitizeNameTest.php Provides data for testFileNameTransliteration().
SanitizeNameTest::testFileNameTransliteration function core/modules/file/tests/src/Unit/SanitizeNameTest.php Test file name sanitization.
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
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.
UploadedFileConstraintValidatorTest::$filename property core/modules/file/tests/src/Kernel/Validation/UploadedFileConstraintValidatorTest.php The file name.
UploadedFileInterface::getFilename function core/modules/file/src/Upload/UploadedFileInterface.php Gets the filename.
UploadedFileValidatorTest::$filename property core/modules/file/tests/src/Kernel/Validation/UploadedFileValidatorTest.php The file name.
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.