You are here

public function SettingsForm::__construct in Textimage 8.4

Same name and namespace in other branches
  1. 8.3 src/Form/SettingsForm.php \Drupal\textimage\Form\SettingsForm::__construct()

Constructs the class for Textimage settings form.

Parameters

\Drupal\textimage\TextimageFactory $textimage_factory: The Textimage factory.

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

\Drupal\image_effects\Plugin\ImageEffectsPluginManager $font_plugin_manager: The font selector plugin manager.

\Drupal\Core\Image\ImageFactory $image_factory: The Image factory.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 51

Class

SettingsForm
Main Textimage settings admin form.

Namespace

Drupal\textimage\Form

Code

public function __construct(TextimageFactory $textimage_factory, ConfigFactoryInterface $config_factory, ImageEffectsPluginManager $font_plugin_manager, ImageFactory $image_factory) {
  parent::__construct($config_factory);
  $this->textimageFactory = $textimage_factory;
  $this->fontManager = $font_plugin_manager;
  $this->imageFactory = $image_factory;
}