public function WorkbenchAccessBlock::__construct in Workbench Access 8
Constructs a new WorkbenchAccessBlock.
Parameters
array $configuration: Configuration.
string $plugin_id: ID.
array|object $plugin_definition: Definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ WorkbenchAccessBlock.php, line 45
Class
- WorkbenchAccessBlock
- Creates a block to show editorial status.
Namespace
Drupal\workbench_access\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entityTypeManager;
}