You are here

public function OEmbedFormatter::__construct in Cookie Content Blocker 8

Constructs an OEmbedFormatter instance.

Parameters

string $plugin_id: The plugin ID for the formatter.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the formatter is associated.

array $settings: The formatter settings.

string $label: The formatter label display setting.

string $view_mode: The view mode.

array $third_party_settings: Any third party settings.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Drupal\media\OEmbed\ResourceFetcherInterface $resource_fetcher: The oEmbed resource fetcher service.

\Drupal\media\OEmbed\UrlResolverInterface $url_resolver: The oEmbed URL resolver service.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\media\IFrameUrlHelper $iframe_url_helper: The iFrame URL helper service.

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

Overrides OEmbedFormatter::__construct

File

modules/cookie_content_blocker_media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php, line 78

Class

OEmbedFormatter
Plugin implementation of the 'oembed' formatter.

Namespace

Drupal\cookie_content_blocker_media\Plugin\Field\FieldFormatter

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, MessengerInterface $messenger, ResourceFetcherInterface $resource_fetcher, UrlResolverInterface $url_resolver, LoggerChannelFactoryInterface $logger_factory, ConfigFactoryInterface $config_factory, IFrameUrlHelper $iframe_url_helper, RendererInterface $renderer) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $messenger, $resource_fetcher, $url_resolver, $logger_factory, $config_factory, $iframe_url_helper);
  $this->configFactory = $config_factory;
  $this->renderer = $renderer;
}