You are here

public function IndexInterface::getFields in Search API 8

Returns a list of all indexed fields of this index.

Parameters

bool $include_server_defined: (optional) If TRUE, also include special fields defined by the server backend. For more information, see \Drupal\search_api\Backend\BackendSpecificInterface::getBackendDefinedFields().

Return value

\Drupal\search_api\Item\FieldInterface[] An array of all indexed fields for this index, keyed by field identifier.

2 methods override IndexInterface::getFields()
Index::getFields in src/Entity/Index.php
Returns a list of all indexed fields of this index.
UnsavedIndexConfiguration::getFields in src/UnsavedIndexConfiguration.php
Returns a list of all indexed fields of this index.

File

src/IndexInterface.php, line 486

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

public function getFields($include_server_defined = FALSE);