You are here

protected function UrlEmbedHelperTrait::urlEmbed in URL Embed 8

Returns the URL embed service.

Return value

\Drupal\url_embed\UrlEmbedInterface The URL embed service..

File

src/UrlEmbedHelperTrait.php, line 68
Contains Drupal\url_embed\UrlEmbedHelperTrait.

Class

UrlEmbedHelperTrait
Wrapper methods for URL embedding.

Namespace

Drupal\url_embed

Code

protected function urlEmbed() {
  if (!isset($this->url_embed)) {
    $this->url_embed = \Drupal::service('url_embed');
  }
  return $this->url_embed;
}