You are here

public function InstagramEmbedFormatter::__construct in Media entity Instagram 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/InstagramEmbedFormatter.php \Drupal\media_entity_instagram\Plugin\Field\FieldFormatter\InstagramEmbedFormatter::__construct()

Constructs a InstagramEmbedFormatter instance.

Overrides FormatterBase::__construct

File

src/Plugin/Field/FieldFormatter/InstagramEmbedFormatter.php, line 40

Class

InstagramEmbedFormatter
Plugin implementation of the 'instagram_embed' formatter.

Namespace

Drupal\media_entity_instagram\Plugin\Field\FieldFormatter

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, InstagramEmbedFetcher $fetcher) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
  $this->fetcher = $fetcher;
}