You are here

public function SlickEntityReferenceFormatterBase::__construct in Slick Carousel 8

Same name and namespace in other branches
  1. 7.3 src/Plugin/Field/FieldFormatter/SlickEntityReferenceFormatterBase.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickEntityReferenceFormatterBase::__construct()

Constructs a SlickMediaFormatter instance.

File

src/Plugin/Field/FieldFormatter/SlickEntityReferenceFormatterBase.php, line 41

Class

SlickEntityReferenceFormatterBase
Base class for slick entity reference formatters with field details.

Namespace

Drupal\slick\Plugin\Field\FieldFormatter

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, LoggerChannelFactoryInterface $logger_factory, EntityStorageInterface $image_style_storage, SlickFormatterInterface $formatter, SlickManagerInterface $manager) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
  $this->loggerFactory = $logger_factory;
  $this->imageStyleStorage = $image_style_storage;
  $this->formatter = $formatter;
  $this->manager = $manager;
}