public function FileInterface::createFileUrl in Drupal 8
Same name and namespace in other branches
- 9 core/modules/file/src/FileInterface.php \Drupal\file\FileInterface::createFileUrl()
- 10 core/modules/file/src/FileInterface.php \Drupal\file\FileInterface::createFileUrl()
Creates a file URL for the URI of this file.
Parameters
bool $relative: (optional) Whether the URL should be root-relative, defaults to TRUE.
Return value
string A string containing a URL that may be used to access the file.
See also
1 method overrides FileInterface::createFileUrl()
- File::createFileUrl in core/
modules/ file/ src/ Entity/ File.php - Creates a file URL for the URI of this file.
File
- core/
modules/ file/ src/ FileInterface.php, line 65
Class
- FileInterface
- Defines getter and setter methods for file entity base fields.
Namespace
Drupal\fileCode
public function createFileUrl($relative = TRUE);