You are here

public function TwitterBlockBase::__construct in Twitter Embed 8

Constructs a new TwitterButtonBlock object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

string $plugin_definition: The plugin implementation definition.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/TwitterBlockBase.php, line 35

Class

TwitterBlockBase
TwitterBlockBase class.

Namespace

Drupal\twitter_embed\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TwitterWidgetInterface $twitter_widget) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->twitterWidget = $twitter_widget;
}