You are here

public function renderCheeseburgerMenuBlock::placeBlockContent in Cheeseburger Menu 8

Return value

rendered block pulls a block by id and returns its rendered array

File

src/Controller/renderCheeseburgerMenuBlock.php, line 498

Class

renderCheeseburgerMenuBlock

Namespace

Drupal\cheeseburger_menu\Controller

Code

public function placeBlockContent($block_id) {
  $block = Block::load($block_id);
  $render = \Drupal::entityTypeManager()
    ->getViewBuilder('block')
    ->view($block);
  return $render;
}