public function SlickEntityFormatterBase::__construct in Slick Carousel 8
Same name and namespace in other branches
- 7.3 src/Plugin/Field/FieldFormatter/SlickEntityFormatterBase.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickEntityFormatterBase::__construct()
Constructs a SlickMediaFormatter instance.
File
- src/
Plugin/ Field/ FieldFormatter/ SlickEntityFormatterBase.php, line 34
Class
- SlickEntityFormatterBase
- Base class for slick entity reference formatters without field details.
Namespace
Drupal\slick\Plugin\Field\FieldFormatterCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, LoggerChannelFactoryInterface $logger_factory, SlickFormatterInterface $formatter, SlickManagerInterface $manager) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
$this->loggerFactory = $logger_factory;
$this->formatter = $formatter;
$this->manager = $manager;
}