public function SliderProFormatter::__construct in Slider Pro 8
SliderProFormatter constructor.
Overrides ImageFormatter::__construct
File
- src/
Plugin/ Field/ FieldFormatter/ SliderProFormatter.php, line 34
Class
- SliderProFormatter
- Plugin annotation @FieldFormatter( id = "slider_pro", label = @Translation("Slider Pro"), field_types = { "image" } )
Namespace
Drupal\slider_pro\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, EntityStorageInterface $image_style_storage, SliderProManager $slider_pro_manager) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $current_user, $image_style_storage);
$this->sliderProManager = $slider_pro_manager;
}