Guest User

Untitled

a guest
Jan 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. function themename_preprocess(&$variables) {
  2. $block = DrupalblockEntityBlock::load('language_block');
  3. $variables['block_output'] = Drupal::entityTypeManager()->getViewBuilder('block') ->view($block);
  4.  
  5. echo $variables['block_output'];
  6. exit;
  7. }
  8.  
  9. TypeError: Argument 1 passed to DrupalblockBlockViewBuilder::view() must implement interface DrupalCoreEntityEntityInterface, null given,
Add Comment
Please, Sign In to add comment