interface AvatarKitEntityPreferenceManagerInterface in Avatar Kit 8.2
Interface for entity preference manager.
Hierarchy
- interface \Drupal\avatars\AvatarKitEntityPreferenceManagerInterface
Expanded class hierarchy of AvatarKitEntityPreferenceManagerInterface
All classes that implement AvatarKitEntityPreferenceManagerInterface
File
- src/
AvatarKitEntityPreferenceManagerInterface.php, line 10
Namespace
Drupal\avatarsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AvatarKitEntityPreferenceManagerInterface:: |
public | function | Get the avatar service preferences for an entity. | 1 |
AvatarKitEntityPreferenceManagerInterface:: |
public | function | Reset preferences for a entity bundle. | 1 |