You are here

public function SearchApiFieldTrait::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/views/field/SearchApiFieldTrait.php, line 175

Class

SearchApiFieldTrait
Provides a trait to use for Search API Views field handlers.

Namespace

Drupal\search_api\Plugin\views\field

Code

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