public function EntityBlock::__construct in Entity Blocks 8
Same name in this branch
- 8 src/Plugin/Derivative/EntityBlock.php \Drupal\entity_block\Plugin\Derivative\EntityBlock::__construct()
- 8 src/Plugin/Block/EntityBlock.php \Drupal\entity_block\Plugin\Block\EntityBlock::__construct()
Constructs a EntityBlock object.
Parameters
string $base_plugin_id: The base plugin ID.
EntityTypeManagerInterface $entityTypeManager: The entity type manager.
File
- src/
Plugin/ Derivative/ EntityBlock.php, line 55
Class
- EntityBlock
- Provides block plugin definitions for all Entity Block block displays.
Namespace
Drupal\entity_block\Plugin\DerivativeCode
public function __construct($base_plugin_id, EntityTypeManagerInterface $entityTypeManager) {
$this->basePluginId = $base_plugin_id;
$this->entityTypeManager = $entityTypeManager;
}