You are here

public function UrlEmbedHelperTrait::setUrlEmbed in URL Embed 8

Sets the URL embed service.

Parameters

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

Return value

self

2 calls to UrlEmbedHelperTrait::setUrlEmbed()
UrlEmbedDialog::__construct in src/Form/UrlEmbedDialog.php
Constructs a UrlEmbedDialog object.
UrlEmbedFilter::__construct in src/Plugin/Filter/UrlEmbedFilter.php
Constructs a UrlEmbedFilter object.

File

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

Class

UrlEmbedHelperTrait
Wrapper methods for URL embedding.

Namespace

Drupal\url_embed

Code

public function setUrlEmbed(UrlEmbedInterface $url_embed) {
  $this->url_embed = $url_embed;
  return $this;
}