You are here

public function SaveSearch::getEntityTypeManager in Search API Saved Searches 8

Retrieves the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.

File

src/Plugin/Block/SaveSearch.php, line 77

Class

SaveSearch
Displays the "Save search" form in a block.

Namespace

Drupal\search_api_saved_searches\Plugin\Block

Code

public function getEntityTypeManager() {
  return $this->entityTypeManager ?: \Drupal::entityTypeManager();
}