function BlockListBuilder::render

Same name in other branches
  1. 9 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::render()
  2. 8.9.x core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::render()
  3. 10 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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.