getEntityTypeId() method fails on layout page without blocks

Created on 27 June 2024, about 1 year ago

Problem/Motivation

Fatal indicating that getEntityTypeId() method cannot be called on NULL block.

Steps to reproduce

  1. Install lb_plus
  2. Turn on individual layouts for a vocabulary
  3. Visit layout page for vocabulary
  4. See fatal indicating that getEntityTypeId() method cannot be called on NULL block.

Proposed resolution

Add this to build method:

    if (empty($block)) {
      return [];
    }
πŸ› Bug report
Status

Needs review

Version

10.2 ✨

Component
Layout builderΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States EthanT Sarasota, Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024