Problem/Motivation

When attempting to configure the field formatter an error is encountered.

Error: Call to undefined method Drupal\search_api\Plugin\search_api\processor\Property\AggregatedFieldProperty::getFieldDefinition() in Drupal\entity_reference_facet_link\Plugin\Field\FieldFormatter\EntityReferenceFacetFormatterBase->settingsForm() (line 115 of /app/drupal/docroot/modules/contrib/entity_reference_facet_link/src/Plugin/Field/FieldFormatter/EntityReferenceFacetFormatterBase.php)

Steps to reproduce

Enable the module with any Facet enabled based on an aggregate field.

Similar issue https://www.drupal.org/project/facets_prefix_suffix/issues/3039213

Proposed resolution

Check if the definition is actually of the type \Drupal\Core\Field\TypedData\FieldItemDataDefinition

CommentFileSizeAuthor
#2 263663-2.patch1.83 KBgrndlvl

Comments

grndlvl created an issue. See original summary.

grndlvl’s picture

Assigned: grndlvl » Unassigned
Status: Active » Needs review
StatusFileSize
new1.83 KB

  • dcam committed e9b0b04 on 2.x authored by grndlvl
    Issue #3263663 by grndlvl: Error: Call to undefined method Drupal\...
dcam’s picture

Status: Needs review » Fixed

Thanks for the report and the patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.