function FormUploadedFile::getFilename

Same name in other branches
  1. 9 core/modules/file/src/Upload/FormUploadedFile.php \Drupal\file\Upload\FormUploadedFile::getFilename()
  2. 11.x core/modules/file/src/Upload/FormUploadedFile.php \Drupal\file\Upload\FormUploadedFile::getFilename()

Overrides UploadedFileInterface::getFilename

File

core/modules/file/src/Upload/FormUploadedFile.php, line 87

Class

FormUploadedFile
Provides a bridge to Symfony UploadedFile.

Namespace

Drupal\file\Upload

Code

public function getFilename() : string {
    return $this->uploadedFile
        ->getFilename();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.