You are here

public function BlazyTestEntityReferenceFormatterTest::__construct in Blazy 8

Constructs a SlickMediaFormatter instance.

Overrides FormatterBase::__construct

File

tests/modules/blazy_test/src/Plugin/Field/FieldFormatter/BlazyTestEntityReferenceFormatterTest.php, line 41

Class

BlazyTestEntityReferenceFormatterTest
Plugin implementation of the 'Blazy Entity Reference' formatter.

Namespace

Drupal\blazy_test\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, BlazyManagerInterface $blazy_manager, BlazyFormatterTestInterface $formatter) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
  $this->loggerFactory = $logger_factory;
  $this->blazyManager = $blazy_manager;
  $this->formatter = $formatter;
}