Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SearchInterface.php

function SearchInterface::buildResults

Executes the search and builds render arrays for the result items.

Return value

array An array of render arrays of search result items (generally each item has '#theme' set to 'search_result'), or an empty array if there are no results.

1 method overrides SearchInterface::buildResults()
SearchPluginBase::buildResults in core/modules/search/src/Plugin/SearchPluginBase.php
Executes the search and builds render arrays for the result items.

File

core/modules/search/src/Plugin/SearchInterface.php, line 90

Class

SearchInterface
Defines a common interface for all SearchPlugin objects.

Namespace

Drupal\search\Plugin

Code

public function buildResults();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal