public function StreamWrapper::getBasename in AmazonS3 7.2
Return the basename for this URI.
Return value
string The basename of the URI.
1 call to StreamWrapper::getBasename()
- StreamWrapper::getContentDispositionAttachment in src/
StreamWrapper.php - Return a string to use as a Content-Disposition header.
File
- src/
StreamWrapper.php, line 379 - Drupal stream wrapper implementation for Amazon S3
Class
- StreamWrapper
- @file Drupal stream wrapper implementation for Amazon S3
Namespace
Drupal\amazons3Code
public function getBasename() {
if (!isset($this->uri)) {
throw new \LogicException('A URI must be set before calling getBasename().');
}
return basename($this
->getLocalPath());
}