You are here

public function AvatarKitEntityFieldHandlerInterface::getAvatarFieldConfig in Avatar Kit 8.2

Get target field configuration for an entity.

Parameters

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

Return value

\Drupal\field\FieldConfigInterface|null A field config entity, or NULL if one does not exist for this entity.

1 method overrides AvatarKitEntityFieldHandlerInterface::getAvatarFieldConfig()
AvatarKitEntityFieldHandler::getAvatarFieldConfig in src/AvatarKitEntityFieldHandler.php
Get target field configuration for an entity.

File

src/AvatarKitEntityFieldHandlerInterface.php, line 56

Class

AvatarKitEntityFieldHandlerInterface
Handles pushing avatar caches into entities.

Namespace

Drupal\avatars

Code

public function getAvatarFieldConfig(EntityInterface $entity) : ?FieldConfigInterface;