You are here

public function Settings::__construct in Avatar Kit 8

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

\Drupal\avatars\AvatarGeneratorPluginManagerInterface $avatar_generator: The avatar generator plugin manager.

Overrides ConfigFormBase::__construct

File

src/Form/Settings.php, line 34

Class

Settings
Configure avatar kit settings.

Namespace

Drupal\avatars\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, AvatarGeneratorPluginManagerInterface $avatar_generator) {
  parent::__construct($config_factory);
  $this->avatarGenerator = $avatar_generator;
}