public File::url($rel = 'canonical', $options = array())
Overrides Entity::url
See also
File
- core/modules/file/src/Entity/File.php, line 73
Class
- File
- Defines the file entity class.
Namespace
Drupal\file\Entity
Code
public function url($rel = 'canonical', $options = array()) { return file_create_url($this->getFileUri()); }
Please login to continue.