You are here

public function BackendPluginBase::getFieldsHelper in Search API 8

Retrieves the fields helper.

Return value

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

File

src/Backend/BackendPluginBase.php, line 108

Class

BackendPluginBase
Defines a base class for backend plugins.

Namespace

Drupal\search_api\Backend

Code

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