You are here

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\FacetSource

Code

public function getEntityTypeManager() {
  return $this->entityTypeManager ?: \Drupal::service('entity_type.manager');
}