You are here

public function ContentEntityDeriver::setEntityTypeManager in Search API 8

Sets the entity type manager.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Return value

$this

File

src/Plugin/search_api/datasource/ContentEntityDeriver.php, line 68

Class

ContentEntityDeriver
Derives a datasource plugin definition for every content entity type.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

public function setEntityTypeManager(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
  return $this;
}