Call to undefined method Drupal\entity_browser\Form\EntityBrowserForm::getEntity() in Drupal\scheduled_publish\Plugin\Field\FieldWidget\ScheduledPublishWidget->formElement()

Created on 6 March 2024, 10 months ago

Problem/Motivation

When creating a new node using Entity Browser it generates this error:

Call to undefined method Drupal\entity_browser\Form\EntityBrowserForm::getEntity() in Drupal\scheduled_publish\Plugin\Field\FieldWidget\ScheduledPublishWidget->formElement()

Steps to reproduce

Install Entity Browser and paragraph. Attach a field that is an entity browser to a content type. Then create or edit an existing node. The field that has the entity browser launches but when you try to create a new node via the Entity Browser, it generates that error.

The proposed solution is to validate if the method exists. I attached via patch.

πŸ› Bug report
Status

Active

Version

3.10

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States nomisgnos

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

Comments & Activities

Production build 0.71.5 2024