public function TestBackend::viewSettings in Search API 8
Returns additional, backend-specific information about this server.
This information will be then added to the server's "View" tab in some way. In the default theme implementation the data is output in a table with two columns along with other, generic information about the server.
Return value
array An array of additional server information, with each piece of information being an associative array with the following keys:
- label: The human-readable label for this data.
- info: The information, as HTML.
- status: (optional) The status associated with this information. One of "info", "ok", "warning" or "error". Defaults to "info".
Overrides BackendPluginBase::viewSettings
File
- tests/
search_api_test/ src/ Plugin/ search_api/ backend/ TestBackend.php, line 66
Class
- TestBackend
- Provides a dummy backend for testing purposes.
Namespace
Drupal\search_api_test\Plugin\search_api\backendCode
public function viewSettings() {
return [
[
'label' => 'Dummy Info',
'info' => 'Dummy Value',
'status' => 'error',
],
[
'label' => 'Dummy Info 2',
'info' => 'Dummy Value 2',
],
];
}