Skip to content
Snippets Groups Projects

Update InlineBlock.php

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -215,6 +215,9 @@ protected function blockAccess(AccountInterface $account) {
@@ -215,6 +215,9 @@ protected function blockAccess(AccountInterface $account) {
*/
*/
public function build() {
public function build() {
$block = $this->getEntity();
$block = $this->getEntity();
 
if (is_null($block)) {
 
return [];
 
}
return $this->entityTypeManager->getViewBuilder($block->getEntityTypeId())->view($block, $this->configuration['view_mode']);
return $this->entityTypeManager->getViewBuilder($block->getEntityTypeId())->view($block, $this->configuration['view_mode']);
}
}
Loading