You are here

public function InstagramPostBlock::__construct in Social Feed 8

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/InstagramPostBlock.php, line 57

Class

InstagramPostBlock
Provides a 'InstagramPostBlock' block.

Namespace

Drupal\socialfeed\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactory $config_factory, InstagramPostCollectorFactory $instagram, AccountInterface $currentUser, Request $request) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->config = $config_factory
    ->getEditable('socialfeed.instagramsettings');
  $this->instagram = $instagram;
  $this->currentUser = $currentUser;
  $this->currentRequest = $request;
}