You are here

public function PanopolyMediaResponsiveThumbnail::__construct in Panopoly 8.2

Constructs an PanopolyMediaResponsiveThumbnailFormatter object.

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 settings.

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

\Drupal\Core\Entity\EntityStorageInterface $responsive_image_style_storage: The responsive image style storage.

\Drupal\image\ImageStyleStorageInterface $image_style_storage: The image style entity storage handler.

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

\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: The link generator service.

Overrides MediaThumbnailFormatter::__construct

File

modules/panopoly/panopoly_media/src/Plugin/Field/FieldFormatter/PanopolyMediaResponsiveThumbnail.php, line 74

Class

PanopolyMediaResponsiveThumbnail
Plugin implementation of the 'Responsive thumbnail' formatter.

Namespace

Drupal\panopoly_media\Plugin\Field\FieldFormatter

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, AccountInterface $current_user, EntityStorageInterface $responsive_image_style_storage, ImageStyleStorageInterface $image_style_storage, RendererInterface $renderer, LinkGeneratorInterface $link_generator) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $current_user, $image_style_storage, $renderer);
  $this->responsiveImageStyleStorage = $responsive_image_style_storage;
  $this->linkGenerator = $link_generator;
}