FieldAPIHandlerTrait::getEntityManager

protected FieldAPIHandlerTrait::getEntityManager()

Returns the entity manager.

Return value

\Drupal\Core\Entity\EntityManagerInterface The entity manager service.

File

core/modules/views/src/FieldAPIHandlerTrait.php, line 67

Class

FieldAPIHandlerTrait
A trait containing helper methods for field definitions.

Namespace

Drupal\views

Code

protected function getEntityManager() {
  if (!isset($this->entityManager)) {
    $this->entityManager = \Drupal::entityManager();
  }
  return $this->entityManager;
}
doc_Drupal
2016-10-29 09:10:33
Comments
Leave a Comment

Please login to continue.