You are here

public function FacebookPostBlock::__construct in Social Feed 8

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/FacebookPostBlock.php, line 55

Class

FacebookPostBlock
Provides a 'FacebookPostBlock' block.

Namespace

Drupal\socialfeed\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, FacebookPostCollectorFactory $facebook, ConfigFactoryInterface $config, AccountInterface $currentUser, LoggerChannelFactoryInterface $logger_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->facebook = $facebook;
  $this->config = $config
    ->get('socialfeed.facebooksettings');
  $this->currentUser = $currentUser;
  $this->logger = $logger_factory
    ->get('socialfeed');
}