You are here

public function AvatarKitEntityFieldHandlerInterface::getAvatarFieldName in Avatar Kit 8.2

Get field name for avatars.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: Get the field name for this entity.

Return value

string|null The field name, or NULL if no field name is defined.

1 method overrides AvatarKitEntityFieldHandlerInterface::getAvatarFieldName()
AvatarKitEntityFieldHandler::getAvatarFieldName in src/AvatarKitEntityFieldHandler.php
Get field name for avatars.

File

src/AvatarKitEntityFieldHandlerInterface.php, line 45

Class

AvatarKitEntityFieldHandlerInterface
Handles pushing avatar caches into entities.

Namespace

Drupal\avatars

Code

public function getAvatarFieldName(EntityInterface $entity) : ?string;