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\BlockCode
public function getEntityTypeManager() {
return $this->entityTypeManager ?: \Drupal::entityTypeManager();
}