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
Namespace
Drupal\cheeseburger_menu\ControllerCode
public function placeBlockContent($block_id) {
$block = Block::load($block_id);
$render = \Drupal::entityTypeManager()
->getViewBuilder('block')
->view($block);
return $render;
}