Error: Call to undefined method Drupal\Core\Field\BaseFieldDefinition::get() in Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget->settingsForm()

That's because it is using get('uuid') to get a unique value for the HTML ID, but that only exists when it is a config entity.

It should use getUniqueIdentifier() instead, which exists exactly for this reason.

CommentFileSizeAuthor
#2 entity-browser-uuid-3071075-2.patch860 bytesberdir

Comments

Berdir created an issue. See original summary.

berdir’s picture

Status: Active » Needs review
StatusFileSize
new860 bytes
oknate’s picture

Thanks for posting this fix. This is a duplicate of #3068557: Fatal error when using the entity browser widget on a base field although this one has a better issue summary.

oknate’s picture

Status: Needs review » Closed (duplicate)