public function VideoEmbedThumbnailFormatter::__construct in Video 8.2
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/VideoEmbedThumbnailFormatter.php \Drupal\video\Plugin\Field\FieldFormatter\VideoEmbedThumbnailFormatter::__construct()
Constructs a new instance of the plugin.
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: Third party settings.
\Drupal\video\ProviderManagerInterface $provider_manager: The video embed provider manager.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: ` The stream wrapper manager.
Overrides FormatterBase::__construct
File
- src/
Plugin/ Field/ FieldFormatter/ VideoEmbedThumbnailFormatter.php, line 167
Class
- VideoEmbedThumbnailFormatter
- Plugin implementation of the thumbnail field formatter.
Namespace
Drupal\video\Plugin\Field\FieldFormatterCode
public function __construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, ProviderManagerInterface $provider_manager, StreamWrapperManagerInterface $stream_wrapper_manager) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
$this->providerManager = $provider_manager;
$this->streamWrapperManager = $stream_wrapper_manager;
}