public function ShareEverywhereBlock::__construct in Share Everywhere 8
Same name and namespace in other branches
- 2.x src/Plugin/Block/ShareEverywhereBlock.php \Drupal\share_everywhere\Plugin\Block\ShareEverywhereBlock::__construct()
Constructs an ShareEverywhereBlock object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\share_everywhere\ShareEverywhereServiceInterface $share_service: The module manager service.
\Drupal\Core\Path\AliasManager $alias_manager: The path alias manager.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ ShareEverywhereBlock.php, line 50
Class
- ShareEverywhereBlock
- Provides a 'Share Everywhere' Block.
Namespace
Drupal\share_everywhere\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ShareEverywhereServiceInterface $share_service, AliasManager $alias_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->shareService = $share_service;
$this->aliasManager = $alias_manager;
}