public function SettingsForm::__construct in Image Effects 8.2
Same name and namespace in other branches
- 8.3 src/Form/SettingsForm.php \Drupal\image_effects\Form\SettingsForm::__construct()
- 8 src/Form/SettingsForm.php \Drupal\image_effects\Form\SettingsForm::__construct()
Constructs the class for image_effects settings form.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\image_effects\Plugin\ImageEffectsPluginManager $color_plugin_manager: The color selector plugin manager.
\Drupal\image_effects\Plugin\ImageEffectsPluginManager $image_plugin_manager: The image selector plugin manager.
\Drupal\image_effects\Plugin\ImageEffectsPluginManager $font_plugin_manager: The font selector plugin manager.
Overrides ConfigFormBase::__construct
File
- src/
Form/ SettingsForm.php, line 56
Class
- SettingsForm
- Main image_effects settings admin form.
Namespace
Drupal\image_effects\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ImageEffectsPluginManager $color_plugin_manager, ImageEffectsPluginManager $image_plugin_manager, ImageEffectsPluginManager $font_plugin_manager) {
parent::__construct($config_factory);
$this->colorManager = $color_plugin_manager;
$this->imageManager = $image_plugin_manager;
$this->fontManager = $font_plugin_manager;
}