public function BlockContentBlock::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/block_content/src/Plugin/Block/BlockContentBlock.php \Drupal\block_content\Plugin\Block\BlockContentBlock::__construct()
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\Block\BlockManagerInterface $block_manager: The Plugin Block Manager.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.
\Drupal\Core\Session\AccountInterface $account: The account for which view access should be checked.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator.
Overrides BlockBase::__construct
File
- core/
modules/ block_content/ src/ Plugin/ Block/ BlockContentBlock.php, line 85 - Contains \Drupal\block_content\Plugin\Block\BlockContentBlock.
Class
- BlockContentBlock
- Defines a generic custom block type.
Namespace
Drupal\block_content\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, BlockManagerInterface $block_manager, EntityManagerInterface $entity_manager, AccountInterface $account, UrlGeneratorInterface $url_generator) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->blockManager = $block_manager;
$this->entityManager = $entity_manager;
$this->account = $account;
$this->urlGenerator = $url_generator;
}