You are here

public function Field::setEntityTypeManager in Search API 8

Sets the entity type manager.

Parameters

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

Return value

$this

File

src/Item/Field.php, line 235

Class

Field
Represents a field on a search item that can be indexed.

Namespace

Drupal\search_api\Item

Code

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