Problem/Motivation

As a result, you will get the error:

PHP Fatal error: Uncaught Error: Call to undefined function _search_api_views_find_field_alias() in /var/www/html/web/modules/contrib/search_api_extras/search_api_extras.module:7

This was moved to \Drupal\search_api\Hook\SearchApiViewsHooks::findFieldAlias(). But, as a protected function, we can't use that on the service class either.

Resolution

We could emulate what was done in the search_api_opensearch_semantic module in #3556568: _search_api_views_find_field_alias has been removed

They just copied the method to their own internal class, and used that. It looks rather straightforward.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bburg created an issue. See original summary.

bburg’s picture

Issue summary: View changes

I pushed a commit and created a merge request, but Gitlab seems to be having some trouble today.

bburg’s picture

Status: Active » Needs review

  • azinck committed 7a828798 on 1.0.x authored by bburg
    Issue #3566234, bburg, adds _search_api_views_find_field_alias function,
    
azinck’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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