You are here

public function BlockListBuilder::render in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 107
Contains \Drupal\block\BlockListBuilder.

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);
}