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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 263663-2.patch | 1.83 KB | grndlvl |
Comments
Comment #2
grndlvl commentedComment #4
dcam commentedThanks for the report and the patch!