You are here

public function BlockListBuilder::render in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::render()

Parameters

string|null $theme: (optional) The theme to display the blocks for. If NULL, the current theme will be used.

\Symfony\Component\HttpFoundation\Request $request: The current request.

Return value

array The block list as a renderable array.

Overrides EntityListBuilder::render

File

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

Class

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

Namespace

Drupal\block

Code

public function render($theme = NULL, Request $request = NULL) {
  $this->request = $request;
  $this->theme = $theme;
  return $this->formBuilder
    ->getForm($this);
}