Problem/Motivation
There is a Views row plugin called "Search Results" (core/modules/search/src/Plugin/views/row/SearchRow.php). This was apparently imported from a non-working row plugin in the Drupal 7 contrib Views module. However, as far as we can tell:
a) It didn't work in Drupal 7. Here's the code from there:
function search_views_plugins() {
return;
// DISABLED. This currently doesn't work.
return array(
'module' => 'views', // This just tells our themes are elsewhere.
'row' => array(
'search' => array(
'title' => t('Search'),
'help' => t('Display the results with standard search view.'),
...
b) Although it was imported into Drupal 8 initially as core/modules/views/lib/Views/search/Plugin/views/row/View.php (I think) early in the port to Views, it was never made to work and never had any tests.
c) It still has no tests and doesn't work. However, it appears in the UI when you are creating a view of nodes, as a row option. It causes the view to display nothing. See "Original issue -- Steps to reproduce" section below for steps to reproduce.
d) We do not need this plugin. If you want to make a view of search results, you can use the node Teaser view or the Fields row plugin.
e) We don't actually know what it was supposed to display.
Proposed resolution
Remove this non-working, confusing plugin, along with its config schema.
Remaining tasks
Make a patch and commit it.
User interface changes
The non-working plugin for search results rows in Views will no longer appear in the UI.
API changes
The non-working plugin code will no longer be in Core.
Data model changes
The schema for the non-working plugin will no longer be in Core.
Original issue -- Steps to reproduce
- Simplytest.me with devel (for devel generate) and core
- Generate 50 basic pages using devel generate defaults
- Run cron via status page to index content
- Generate simple page view as unformatted list displaying search results (Format>Show Search Results)
- Add an exposed filter on search term Apply
Expected results
Display of search results (or something) that include the term, in the case of my test there should be one search result.
Actual results
- Nothing is displayed.
- Selecting a term that is common shows pager with no row output.
- Checking dblog shows 2 entries:
- Theme hook not found.
- Notice: Undefined index: theme in Drupal\views\Plugin\views\PluginBase->themeFunctions() (line 296 of /home/r0k6k/www/core/modules/views/src/Plugin/views/PluginBase.php).
- Switching the display to be content (Format>Content) displays the content for the result.
Export of configuration is attached.