public function SocialSharingBlock::__construct in Social media share 8
Constructor.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ SocialSharingBlock.php, line 57
Class
- SocialSharingBlock
- Provides a 'SocialSharingBlock' block.
Namespace
Drupal\social_media\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, Token $token, EventDispatcherInterface $event_dispatcher, CurrentPathStack $current_path) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configFactory = $config_factory;
$this->token = $token;
$this->eventDispatcher = $event_dispatcher;
$this->currentPath = $current_path;
}