You are here

public function AvatarKitEntityMappingForm::__construct in Avatar Kit 8.2

AvatarKitEntityMappingForm constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager.

Overrides ConfigFormBase::__construct

File

src/Form/AvatarKitEntityMappingForm.php, line 44

Class

AvatarKitEntityMappingForm
Configure Avatar Kit entity maps.

Namespace

Drupal\avatars\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entityTypeManager, EntityFieldManagerInterface $entityFieldManager) {
  parent::__construct($config_factory);
  $this->entityMappingStorage = $entityTypeManager
    ->getStorage('avatars_entity_mapping');
  $this->entityFieldManager = $entityFieldManager;
}