You are here

protected function AvatarGenerator::getPluginCollection in Avatar Kit 8

Encapsulates the creation of this avatar generator's LazyPluginCollection.

Return value

\Drupal\avatars\AvatarGeneratorPluginCollection The avatar generators's plugin collection.

1 call to AvatarGenerator::getPluginCollection()
AvatarGenerator::getPluginCollections in src/Entity/AvatarGenerator.php
Gets the plugin collections used by this object.

File

src/Entity/AvatarGenerator.php, line 110

Class

AvatarGenerator
Defines storage for an avatar generator configuration.

Namespace

Drupal\avatars\Entity

Code

protected function getPluginCollection() {
  if (!$this->pluginCollection) {
    $this->pluginCollection = new AvatarGeneratorPluginCollection(\Drupal::service('plugin.manager.avatar_generator'), $this->plugin, $this->settings);
  }
  return $this->pluginCollection;
}