public function DropDownLoginBlock::__construct in Drop Down Login 8
Constructs a new BlockContentBlock.
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\Core\Session\AccountProxy $account: The account service.
\Drupal\Core\Routing\UrlGeneratorInterface $urlGenerator: The URL generator.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory.
\Drupal\Core\Block\BlockManagerInterface $block_manager: The Plugin Block Manager.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ DropdownLoginBlock.php, line 70
Class
- DropDownLoginBlock
- Provides a 'Drop Down Login' block.
Namespace
Drupal\drop_down_login\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxy $account, UrlGeneratorInterface $urlGenerator, ConfigFactoryInterface $configFactory, BlockManagerInterface $block_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->account = $account;
$this->urlGenerator = $urlGenerator;
$this->configFactory = $configFactory;
$this->blockManager = $block_manager;
}