public property File::$filename

Name of the file with no path components.

This may differ from the basename of the URI if the file is renamed to avoid overwriting an existing file.

Type: string

File

drupal/core/modules/file/lib/Drupal/file/Plugin/Core/Entity/File.php, line 76
Definition of Drupal\file\Plugin\Core\Entity\File.

Class

File
Defines the file entity class.

Namespace

Drupal\file\Plugin\Core\Entity

Code

public $filename;