You are here

public function Textimage::getUrl in Textimage 8.3

Same name and namespace in other branches
  1. 8.4 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 421

Class

Textimage
Provides a Textimage.

Namespace

Drupal\textimage

Code

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