You are here

public function ContentEntity::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/search_api/datasource/ContentEntity.php, line 411

Class

ContentEntity
Represents a datasource which exposes the content entities.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

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