public function BlockListBuilder::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::__construct()
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.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
Overrides EntityListBuilder::__construct
File
- core/
modules/ block/ src/ BlockListBuilder.php, line 76
Class
- BlockListBuilder
- Defines a class to build a listing of block entities.
Namespace
Drupal\blockCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ThemeManagerInterface $theme_manager, FormBuilderInterface $form_builder, MessengerInterface $messenger) {
parent::__construct($entity_type, $storage);
$this->themeManager = $theme_manager;
$this->formBuilder = $form_builder;
$this->messenger = $messenger;
$this->limit = FALSE;
}