BlockListBuilder::render

public BlockListBuilder::render($theme = NULL, Request $request = NULL)

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 102

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);
}
doc_Drupal
2016-10-29 08:47:42
Comments
Leave a Comment

Please login to continue.