You are here

protected function Migration::getEntityManager in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Entity/Migration.php \Drupal\migrate\Entity\Migration::getEntityManager()

Get the entity manager.

Return value

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

File

core/modules/migrate/src/Entity/Migration.php, line 405
Contains \Drupal\migrate\Entity\Migration.

Class

Migration
Defines the Migration entity.

Namespace

Drupal\migrate\Entity

Code

protected function getEntityManager() {
  if (!isset($this->entityManager)) {
    $this->entityManager = \Drupal::entityManager();
  }
  return $this->entityManager;
}