You are here

public function ContentEntity::setState in Search API 8

Sets the state service.

Parameters

\Drupal\Core\State\StateInterface $state: The state service.

Return value

$this

File

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

Class

ContentEntity
Represents a datasource which exposes the content entities.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

public function setState(StateInterface $state) {
  $this->state = $state;
  return $this;
}