You are here

public function AvatarKitEntityPreferenceManager::invalidatePreferences in Avatar Kit 8.2

Reset preferences for a entity bundle.

Parameters

string $entityType: An entity type ID.

string $bundle: A bundle.

Overrides AvatarKitEntityPreferenceManagerInterface::invalidatePreferences

File

src/AvatarKitEntityPreferenceManager.php, line 93

Class

AvatarKitEntityPreferenceManager
Manages order in which services should be fetched for entities.

Namespace

Drupal\avatars

Code

public function invalidatePreferences(string $entityType, string $bundle) : void {

  // There is currently no way to differentiate entity type / bundles. So
  // reset everything.
  $this->preferenceCacheBackend
    ->invalidateAll();
}