You are here

interface AvatarKitEntityPreferenceManagerInterface in Avatar Kit 8.2

Interface for entity preference manager.

Hierarchy

Expanded class hierarchy of AvatarKitEntityPreferenceManagerInterface

All classes that implement AvatarKitEntityPreferenceManagerInterface

File

src/AvatarKitEntityPreferenceManagerInterface.php, line 10

Namespace

Drupal\avatars
View source
interface AvatarKitEntityPreferenceManagerInterface {

  /**
   * Get the avatar service preferences for an entity.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   The entity to get preferences for.
   *
   * @return string[]
   *   An array of avatar service plugin ID's sorted in order of priority. Keys
   *   have no importance.
   */
  public function getPreferences(EntityInterface $entity) : array;

  /**
   * Reset preferences for a entity bundle.
   *
   * @param string $entityType
   *   An entity type ID.
   * @param string $bundle
   *   A bundle.
   */
  public function invalidatePreferences(string $entityType, string $bundle) : void;

}

Members

Namesort descending Modifiers Type Description Overrides
AvatarKitEntityPreferenceManagerInterface::getPreferences public function Get the avatar service preferences for an entity. 1
AvatarKitEntityPreferenceManagerInterface::invalidatePreferences public function Reset preferences for a entity bundle. 1