You are here

public function ContentEntity::getFieldsHelper in Search API 8

Retrieves the fields helper.

Return value

\Drupal\search_api\Utility\FieldsHelperInterface The fields helper.

File

src/Plugin/search_api/datasource/ContentEntity.php, line 399

Class

ContentEntity
Represents a datasource which exposes the content entities.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

public function getFieldsHelper() {
  return $this->fieldsHelper ?: \Drupal::service('search_api.fields_helper');
}