Missing search_api dependency?

Created on 14 October 2024, 3 months ago

Problem/Motivation

It is possible to install facets 3.0.0-beta1 without search_api but it triggers this error:

Error:
Class "Drupal\search_api\Entity\Index" not found

  at modules/contrib/facets/facets.module:393

Steps to reproduce

  1. Enable facets 3.0.0-beta1
  2. Browse to any page of the site

Proposed resolution

If the module always needs search_api, add a dependency in facets.info.yml.
If not, add a condition around the code in facets_views_data_alter().

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024