public function ImageToolkitForm::__construct

Constructs a ImageToolkitForm object.

Parameters

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

\Drupal\Core\Config\Context\ContextInterface $context: The configuration context used for this configuration object.

\Drupal\system\Plugin\ImageToolkitManager $manager: The image toolkit plugin manager.

Overrides SystemConfigFormBase::__construct

File

drupal/core/modules/system/lib/Drupal/system/Form/ImageToolkitForm.php, line 38
Contains \Drupal\system\Form\ImageToolkitForm.

Class

ImageToolkitForm
Configures image toolkit settings for this site.

Namespace

Drupal\system\Form

Code

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