derive SearchAPI display plugins from Views block plugins in a more generic way

Created on 24 February 2025, about 1 month ago

Problem/Motivation

SearchAPI derives a SearchAPI display plugin for every display of every view for the Views display plugins that are in core.

So for example, Drupal\search_api\Plugin\search_api\display\ViewsBlock declares a display plugin for the 'block' Views display plugin, and the deriver Drupal\search_api\Plugin\search_api\display\ViewsDisplayDeriver then derives a plugin for every block display in every view.

Some contrib modules define further Views display plugins, and therefore they should ideally declare SearchAPI display plugins for these -- see integration with Search API Active for example.

However, I am wondering whether for Views display plugins which are block-like, whether SearchAPI could be looser in what it does, and handle all Views display plugins whose classes inherit from Drupal\views\Plugin\views\display\Block.

Steps to reproduce

Proposed resolution

Remaining tasks

Feature request
Status

Active

Version

1.0

Component

Plugins

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024