You are here

public function UnsavedIndexConfiguration::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.

Overrides IndexInterface::getFields

File

src/UnsavedIndexConfiguration.php, line 477

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function getFields($include_server_defined = FALSE) {
  return $this->entity
    ->getFields($include_server_defined);
}