Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FileInterface.php

function 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

\Drupal\Core\File\FileUrlGeneratorInterface

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 75

Class

FileInterface
Defines getter and setter methods for file entity base fields.

Namespace

Drupal\file

Code

public function createFileUrl($relative = TRUE);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal