You are here

public function ImageToolkitForm::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Form/ImageToolkitForm.php \Drupal\system\Form\ImageToolkitForm::__construct()

Constructs a ImageToolkitForm object.

Parameters

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

\Drupal\Core\ImageToolkit\ImageToolkitManager $manager: The image toolkit plugin manager.

Overrides ConfigFormBase::__construct

File

core/modules/system/src/Form/ImageToolkitForm.php, line 36
Contains \Drupal\system\Form\ImageToolkitForm.

Class

ImageToolkitForm
Configures image toolkit settings for this site.

Namespace

Drupal\system\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ImageToolkitManager $manager) {
  parent::__construct($config_factory);
  foreach ($manager
    ->getAvailableToolkits() as $id => $definition) {
    $this->availableToolkits[$id] = $manager
      ->createInstance($id);
  }
}