BlockViewBuilder::__construct

public BlockViewBuilder::__construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler)

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 44

Class

BlockViewBuilder
Provides a Block view builder.

Namespace

Drupal\block

Code

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;
}
doc_Drupal
2016-10-29 08:47:51
Comments
Leave a Comment

Please login to continue.