You are here

public function BlazyFormatterBlazy::__construct in Blazy 7

Constructs a BlazyFormatter instance.

Overrides FormatterBase::__construct

File

src/Plugin/Field/FieldFormatter/BlazyFormatterBlazy.php, line 19

Class

BlazyFormatterBlazy
Plugin implementation of the `Blazy File` or `Blazy Image` for Blazy only.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

public function __construct($plugin_id, $field, $instance, BlazyManagerInterface $formatter) {
  parent::__construct($plugin_id, $field, $instance);
  $this->formatter = $formatter;
}