You are here

public function Textimage::getUrl in Textimage 8.4

Same name and namespace in other branches
  1. 8.3 src/Textimage.php \Drupal\textimage\Textimage::getUrl()

Returns the URL of the Textimage.

Return value

\Drupal\Core\Url The Url object for the textimage.

Overrides TextimageInterface::getUrl

File

src/Textimage.php, line 433

Class

Textimage
Provides a Textimage.

Namespace

Drupal\textimage

Code

public function getUrl() {
  return $this->processed ? Url::fromUri(file_create_url($this
    ->getUri())) : NULL;
}