public FileInterface::setFilename($filename)
Sets the name of the file.
Parameters
string $filename: The file name that corresponds to this file. May differ from the basename of the URI and changing the filename does not change the URI.
File
- core/modules/file/src/FileInterface.php, line 34
Class
- FileInterface
- Defines getter and setter methods for file entity base fields.
Namespace
Drupal\file
Code
public function setFilename($filename);
Please login to continue.