You are here

public function SearchApiFieldTrait::getFieldsHelper in Search API 8

Retrieves the fields helper.

Return value

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

File

src/Plugin/views/field/SearchApiFieldTrait.php, line 186

Class

SearchApiFieldTrait
Provides a trait to use for Search API Views field handlers.

Namespace

Drupal\search_api\Plugin\views\field

Code

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