You are here

public function VideoEmbedWysiwyg::__construct in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 modules/video_embed_wysiwyg/src/Plugin/Filter/VideoEmbedWysiwyg.php \Drupal\video_embed_wysiwyg\Plugin\Filter\VideoEmbedWysiwyg::__construct()

VideoEmbedWysiwyg constructor.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

\Drupal\video_embed_field\ProviderManagerInterface $provider_manager: The video provider manager.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.

Overrides FilterBase::__construct

File

modules/video_embed_wysiwyg/src/Plugin/Filter/VideoEmbedWysiwyg.php, line 64

Class

VideoEmbedWysiwyg
The filter to turn tokens inserted into the WYSIWYG into videos.

Namespace

Drupal\video_embed_wysiwyg\Plugin\Filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ProviderManagerInterface $provider_manager, RendererInterface $renderer, AccountProxyInterface $current_user) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->providerManager = $provider_manager;
  $this->renderer = $renderer;
  $this->currentUser = $current_user;
}