FileInterface::setFilename

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);
doc_Drupal
2016-10-29 09:13:30
Comments
Leave a Comment

Please login to continue.