isLayoutBuilderEnabled error when cloning an entity type

Created on 27 October 2022, about 2 years ago
Updated 30 July 2024, 5 months ago

Problem/Motivation

When cloning one of my entity types i get this error:

Error: Call to undefined method Drupal\Core\Entity\Entity\EntityViewDisplay::isLayoutBuilderEnabled() in Drupal\entity_clone\EntityClone\Config\LayoutBuilderEntityClone->cloneEntity() (line 57 of modules\contrib\entity_clone\src\EntityClone\Config\LayoutBuilderEntityClone.php).

Drupal\entity_clone\EntityClone\Config\LayoutBuilderEntityClone->cloneEntity(Object, Object, Array) (Line: 100)
Drupal\entity_clone\EntityClone\Config\ConfigWithFieldEntityClone->cloneDisplays('view', 'mpep_application', 'mpep_quote', Array, 'node') (Line: 32)
Drupal\entity_clone\EntityClone\Config\ConfigWithFieldEntityClone->cloneEntity(Object, Object, Array) (Line: 209)
Drupal\entity_clone\Form\EntityCloneForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇨🇦Canada liquidcms

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024