When trying to save a Search API index, the following error is thrown.

Call to undefined method Drupal\search_api\Item\Field::getFieldDefinition()

It is caused by line 378 in fontawesome_entity_presave() which is checking for text fields.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hitfactory created an issue. See original summary.

hitfactory’s picture

Title: fontawesome_entity_presave() breaks SearchAPI » fontawesome_entity_presave breaks SearchAPI
Status: Active » Needs review
FileSize
810 bytes

Patch attached which applies fontawesome only on content entities not configuration entities like Search API's Index entity.

Status: Needs review » Needs work
Daniel.Moberly’s picture

Status: Needs work » Fixed
FileSize
810 bytes

This patch looks good. I'm going to commit. Thanks for contributing!

Status: Fixed » Closed (fixed)

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