public function TwitterTimelineFormatter::__construct in Twitter Embed 8
Constructs a TwitterTimelineFormatter.
Overrides FormatterBase::__construct
File
- src/
Plugin/ Field/ FieldFormatter/ TwitterTimelineFormatter.php, line 24
Class
- TwitterTimelineFormatter
- Plugin implementation of the 'twitter_timeline_formatter' formatter.
Namespace
Drupal\twitter_embed\Plugin\Field\FieldFormatterCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings) {
// @todo dependency injection
$this->twitterWidget = \Drupal::service('twitter_embed.timeline_widget');
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
}