You are here

protected function AvatarKitFormAlter::entityTypeManager in Avatar Kit 8.2

Get the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The entity type manager.

File

src/AvatarKitFormAlter.php, line 149

Class

AvatarKitFormAlter
Drupal form alters.

Namespace

Drupal\avatars

Code

protected function entityTypeManager() : EntityTypeManagerInterface {
  if (!$this->entityTypeManager) {
    $this->entityTypeManager = \Drupal::entityTypeManager();
  }
  return $this->entityTypeManager;
}