public function ContentEntity::getState in Search API 8
Retrieves the state service.
Return value
\Drupal\Core\State\StateInterface The entity type manager.
File
- src/
Plugin/ search_api/ datasource/ ContentEntity.php, line 422
Class
- ContentEntity
- Represents a datasource which exposes the content entities.
Namespace
Drupal\search_api\Plugin\search_api\datasourceCode
public function getState() {
return $this->state ?: \Drupal::state();
}