function UploadedFileInterface::getFilename
Same name in other branches
- 9 core/modules/file/src/Upload/UploadedFileInterface.php \Drupal\file\Upload\UploadedFileInterface::getFilename()
- 11.x core/modules/file/src/Upload/UploadedFileInterface.php \Drupal\file\Upload\UploadedFileInterface::getFilename()
Gets the filename.
Return value
string The filename.
See also
https://php.net/manual/en/splfileinfo.getfilename.php
2 methods override UploadedFileInterface::getFilename()
- FormUploadedFile::getFilename in core/
modules/ file/ src/ Upload/ FormUploadedFile.php - Gets the filename.
- InputStreamUploadedFile::getFilename in core/
modules/ file/ src/ Upload/ InputStreamUploadedFile.php - Gets the filename.
File
-
core/
modules/ file/ src/ Upload/ UploadedFileInterface.php, line 106
Class
- UploadedFileInterface
- Provides an interface for uploaded files.
Namespace
Drupal\file\UploadCode
public function getFilename() : string;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.