You are here

public function TwitterFeedBlock::__construct in Twitter_Feed 8

Construct.

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/TwitterFeedBlock.php, line 39

Class

TwitterFeedBlock
Provides a 'TwitterFeedBlock' block.

Namespace

Drupal\twitter_feed\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Client $http_client) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->httpClient = $http_client;
}