public function BlockViewBuilder::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/block/src/BlockViewBuilder.php \Drupal\block\BlockViewBuilder::__construct()
Constructs a new BlockViewBuilder.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides EntityViewBuilder::__construct
File
- core/
modules/ block/ src/ BlockViewBuilder.php, line 48 - Contains \Drupal\block\BlockViewBuilder.
Class
- BlockViewBuilder
- Provides a Block view builder.
Namespace
Drupal\blockCode
public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler) {
parent::__construct($entity_type, $entity_manager, $language_manager);
$this->moduleHandler = $module_handler;
}