You are here

public function SearchApiFieldTrait::setFieldsHelper in Search API 8

Sets the fields helper.

Parameters

\Drupal\search_api\Utility\FieldsHelperInterface $fields_helper: The new fields helper.

Return value

$this

File

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

Class

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

Namespace

Drupal\search_api\Plugin\views\field

Code

public function setFieldsHelper(FieldsHelperInterface $fields_helper) {
  $this->fieldsHelper = $fields_helper;
  return $this;
}