You are here

public function AvatarGeneratorForm::exists in Avatar Kit 8

File

src/Form/AvatarGeneratorForm.php, line 177

Class

AvatarGeneratorForm
Form controller for avatar generator plugin instances.

Namespace

Drupal\avatars\Form

Code

public function exists($form_value, array $element, FormStateInterface $form_state) {
  return AvatarGenerator::load($form_value) instanceof AvatarGeneratorInterface;
}