You are here

public function LinkitSearchPluginInterface::fetchResults in Linkit 7.3

Fetch search results based on the $search_string.

Parameters

$search_string: A string that contains the text to search for.

Return value

An associative array whose values are an associative array containing:

  • title: A string to use as the search result label.
  • description: (optional) A string with additional information about the result item.
  • path: The URL to the item.
  • group: (optional) A string with the group name for the result item. Best practice is to use the plugin name as group name.
  • addClass: (optional) A string with classes to add to the result row..
2 methods override LinkitSearchPluginInterface::fetchResults()
LinkitSearchPluginBroken::fetchResults in includes/search_plugin.class.php
Implements LinkitSearchPluginInterface::fetchResults().
LinkitSearchPluginEntity::fetchResults in plugins/linkit_search/entity.class.php
Implements LinkitSearchPluginInterface::fetchResults().

File

includes/search_plugin.class.php, line 56
Linkit Search plugin interface.

Class

LinkitSearchPluginInterface
Defines a common interface for a Linkit search plugin.

Code

public function fetchResults($search_string);