You are here

public function Server::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 BackendSpecificInterface::viewSettings

File

src/Entity/Server.php, line 190

Class

Server
Defines the search server configuration entity.

Namespace

Drupal\search_api\Entity

Code

public function viewSettings() {
  return $this
    ->hasValidBackend() ? $this
    ->getBackend()
    ->viewSettings() : [];
}