You are here

public function UrlEmbedFilter::__construct in URL Embed 8

Constructs a UrlEmbedFilter object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

Overrides FilterBase::__construct

File

src/Plugin/Filter/UrlEmbedFilter.php, line 45
Contains \Drupal\url_embed\Plugin\Filter\UrlEmbedFilter.

Class

UrlEmbedFilter
Provides a filter to display embedded URLs based on data attributes.

Namespace

Drupal\url_embed\Plugin\Filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, UrlEmbedInterface $url_embed) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setUrlEmbed($url_embed);
}