public function CropWidgetForm::__construct in Image Widget Crop 8.2
Same name and namespace in other branches
- 8 src/Form/CropWidgetForm.php \Drupal\image_widget_crop\Form\CropWidgetForm::__construct()
Constructs a CropWidgetForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\image_widget_crop\ImageWidgetCropInterface $iwc_manager: The ImageWidgetCrop manager service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to use to load modules.
\GuzzleHttp\ClientInterface $http_client: The Guzzle HTTP client.
Overrides ConfigFormBase::__construct
File
- src/
Form/ CropWidgetForm.php, line 62
Class
- CropWidgetForm
- Configure ImageWidgetCrop general settings for this site.
Namespace
Drupal\image_widget_crop\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ImageWidgetCropInterface $iwc_manager, ModuleHandlerInterface $module_handler, ClientInterface $http_client) {
parent::__construct($config_factory);
$this->settings = $this
->config('image_widget_crop.settings');
$this->imageWidgetCropManager = $iwc_manager;
$this->moduleHandler = $module_handler;
$this->httpClient = $http_client;
}