You are here

protected function AvatarKitEntityHooks::entityFieldHandler in Avatar Kit 8.2

Get the entity field handler service.

Return value

\Drupal\avatars\AvatarKitEntityFieldHandlerInterface The entity field handler service.

File

src/AvatarKitEntityHooks.php, line 65

Class

AvatarKitEntityHooks
Drupal entity hooks.

Namespace

Drupal\avatars

Code

protected function entityFieldHandler() : AvatarKitEntityFieldHandlerInterface {
  if (!$this->entityFieldHandler) {
    $this->entityFieldHandler = \Drupal::service('avatars.entity.field_handler');
  }
  return $this->entityFieldHandler;
}