You are here

interface EntityAvatarIdentifierInterface in Avatar Kit 8.2

An entity identifier.

Hierarchy

Expanded class hierarchy of EntityAvatarIdentifierInterface

All classes that implement EntityAvatarIdentifierInterface

1 file declares its use of EntityAvatarIdentifierInterface
AvatarKitEntityField.php in src/Plugin/Avatars/Service/AvatarKitEntityField.php

File

src/EntityAvatarIdentifierInterface.php, line 11

Namespace

Drupal\avatars
View source
interface EntityAvatarIdentifierInterface extends AvatarIdentifierInterface {

  /**
   * Get the entity for this identifier.
   *
   * @return \Drupal\Core\Entity\EntityInterface
   *   An entity.
   */
  public function getEntity() : EntityInterface;

  /**
   * Set the entity for this identifier.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   An entity.
   *
   * @return $this
   *   This object.
   */
  public function setEntity(EntityInterface $entity) : EntityAvatarIdentifierInterface;

}

Members

Namesort descending Modifiers Type Description Overrides
EntityAvatarIdentifierInterface::getEntity public function Get the entity for this identifier. 1
EntityAvatarIdentifierInterface::setEntity public function Set the entity for this identifier. 1