You are here

public function GridStackEntityFormatterBase::__construct in GridStack 8

Constructs a GridStackMediaFormatter instance.

File

src/Plugin/Field/FieldFormatter/GridStackEntityFormatterBase.php, line 32

Class

GridStackEntityFormatterBase
Base class for gridstack entity reference formatters without field details.

Namespace

Drupal\gridstack\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, GridStackFormatterInterface $formatter, GridStackManagerInterface $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;
}