function FileValidationException::getFilename

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

Gets the file name.

Return value

string The file name.

File

core/modules/file/src/Upload/FileValidationException.php, line 46

Class

FileValidationException
Provides an exception for upload validation errors.

Namespace

Drupal\file\Upload

Code

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

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