You are here

public function Task::setEntityTypeManager in Search API 8

Sets the entity type manager.

Parameters

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

Return value

$this

Overrides TaskInterface::setEntityTypeManager

File

src/Entity/Task.php, line 75

Class

Task
Defines the Search API task entity class.

Namespace

Drupal\search_api\Entity

Code

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