BlockListBuilder::__construct

public BlockListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ThemeManagerInterface $theme_manager, FormBuilderInterface $form_builder)

Constructs a new BlockListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

Overrides EntityListBuilder::__construct

File

core/modules/block/src/BlockListBuilder.php, line 71

Class

BlockListBuilder
Defines a class to build a listing of block entities.

Namespace

Drupal\block

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ThemeManagerInterface $theme_manager, FormBuilderInterface $form_builder) {
  parent::__construct($entity_type, $storage);

  $this->themeManager = $theme_manager;
  $this->formBuilder = $form_builder;
}
doc_Drupal
2016-10-29 08:47:43
Comments
Leave a Comment

Please login to continue.