public function BootstrapCarouselImageFormatter::__construct in Bootstrap Carousel Image Formatter 8.3
Overrides FormatterBase::__construct
See also
\Drupal\Core\Field\FormatterBase::__construct()
File
- src/
Plugin/ Field/ FieldFormatter/ BootstrapCarouselImageFormatter.php, line 56
Class
- BootstrapCarouselImageFormatter
- Plugin implementation of the 'bootstrap_image_carousel_formatter' formatter.
Namespace
Drupal\bootstrap_carousel_if\Plugin\Field\FieldFormatterCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, AccountInterface $current_user, LinkGeneratorInterface $link_generator, EntityTypeManagerInterface $etm) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
$this->currentUser = $current_user;
$this->linkGenerator = $link_generator;
$this->imageStyleStorage = $etm
->getStorage('image_style');
}