Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | only-apply-fontawesome-to-content-entities-2941523-2.patch | 810 bytes | Daniel.Moberly |
#2 | only-apply-fontawesome-to-content-entities-2941523-2.patch | 810 bytes | hitfactory |
Comments
Comment #2
hitfactory CreditAttribution: hitfactory commentedPatch attached which applies fontawesome only on content entities not configuration entities like Search API's Index entity.
Comment #4
Daniel.Moberly CreditAttribution: Daniel.Moberly commentedThis patch looks good. I'm going to commit. Thanks for contributing!