public function ShareThis::__construct in Sharethis block 8
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ ShareThis.php, line 27
Class
- ShareThis
- Provides a 'ShareThis' block which just loads javascript for the widget.
Namespace
Drupal\sharethis_block\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->config = $config_factory
->get('sharethis_block.configuration');
}