You are here

protected function Database::getFieldInfo in Search API 8

Retrieves the internal field information.

Parameters

\Drupal\search_api\IndexInterface $index: The index whose fields should be retrieved.

Return value

array[] An array of arrays. The outer array is keyed by field name. Each value is an associative array with information on the field.

4 calls to Database::getFieldInfo()
Database::getAutocompleteSuggestions in modules/search_api_db/src/Plugin/search_api/backend/Database.php
Retrieves autocompletion suggestions for some user input.
Database::getFacets in modules/search_api_db/src/Plugin/search_api/backend/Database.php
Computes facets for a search query.
Database::indexItem in modules/search_api_db/src/Plugin/search_api/backend/Database.php
Indexes a single item on the specified index.
Database::search in modules/search_api_db/src/Plugin/search_api/backend/Database.php
Executes a search on this server.

File

modules/search_api_db/src/Plugin/search_api/backend/Database.php, line 2831

Class

Database
Indexes and searches items using the database.

Namespace

Drupal\search_api_db\Plugin\search_api\backend

Code

protected function getFieldInfo(IndexInterface $index) {
  $db_info = $this
    ->getIndexDbInfo($index);
  return $db_info['field_tables'];
}