public function FacetSourceDeriverBase::getEntityTypeManager in Facets 8
Retrieves the entity manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The entity manager.
File
- src/
FacetSource/ FacetSourceDeriverBase.php, line 68
Class
- FacetSourceDeriverBase
- A base class for facet source derivers.
Namespace
Drupal\facets\FacetSourceCode
public function getEntityTypeManager() {
return $this->entityTypeManager ?: \Drupal::service('entity_type.manager');
}