public BlockListController::listing($theme = NULL, Request $request = NULL)
Shows the block administration page.
Parameters
string|null $theme: Theme key of block list.
\Symfony\Component\HttpFoundation\Request $request: The current request.
Return value
array A render array as expected by drupal_render().
Overrides EntityListController::listing
File
- core/modules/block/src/Controller/BlockListController.php, line 53
 
Class
- BlockListController
 - Defines a controller to list blocks.
 
Namespace
Drupal\block\Controller
Code
public function listing($theme = NULL, Request $request = NULL) {
  $theme = $theme ? : $this->config('system.theme')->get('default');
  if (!$this->themeHandler->hasUi($theme)) {
    throw new NotFoundHttpException();
  }
  return $this->entityManager()->getListBuilder('block')->render($theme, $request);
}
Please login to continue.