public function TwitterPostBlock::__construct in Social Feed 8
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ TwitterPostBlock.php, line 47
Class
- TwitterPostBlock
- Provides a 'TwitterPostBlock' block.
Namespace
Drupal\socialfeed\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, TwitterPostCollectorFactory $socialfeed_twitter, ConfigFactoryInterface $config, AccountInterface $currentUser) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->twitter = $socialfeed_twitter;
$this->config = $config
->get('socialfeed.twittersettings');
$this->currentUser = $currentUser;
}