function UploadedFileInterface::getPathname

Same name in other branches
  1. 9 core/modules/file/src/Upload/UploadedFileInterface.php \Drupal\file\Upload\UploadedFileInterface::getPathname()
  2. 10 core/modules/file/src/Upload/UploadedFileInterface.php \Drupal\file\Upload\UploadedFileInterface::getPathname()

Gets the path to the file.

Return value

string The path to the file.

See also

https://php.net/manual/en/splfileinfo.getpathname.php

2 methods override UploadedFileInterface::getPathname()
FormUploadedFile::getPathname in core/modules/file/src/Upload/FormUploadedFile.php
Gets the path to the file.
InputStreamUploadedFile::getPathname in core/modules/file/src/Upload/InputStreamUploadedFile.php
Gets the path to the file.

File

core/modules/file/src/Upload/UploadedFileInterface.php, line 52

Class

UploadedFileInterface
Provides an interface for uploaded files.

Namespace

Drupal\file\Upload

Code

public function getPathname() : string;

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