You are here

public function AvatarGenerator::getPlugin in Avatar Kit 8

Returns the plugin instance.

Return value

\Drupal\avatars\Plugin\AvatarGenerator\AvatarGeneratorPluginInterface The plugin instance for this avatar generator.

Overrides AvatarGeneratorInterface::getPlugin

File

src/Entity/AvatarGenerator.php, line 127

Class

AvatarGenerator
Defines storage for an avatar generator configuration.

Namespace

Drupal\avatars\Entity

Code

public function getPlugin() {
  return $this
    ->getPluginCollection()
    ->get($this->plugin);
}