You are here

public function CropWidgetForm::__construct in Image Widget Crop 8

Same name and namespace in other branches
  1. 8.2 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.

Overrides ConfigFormBase::__construct

File

src/Form/CropWidgetForm.php, line 40

Class

CropWidgetForm
Configure ImageWidgetCrop general settings for this site.

Namespace

Drupal\image_widget_crop\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ImageWidgetCropManager $iwc_manager) {
  parent::__construct($config_factory);
  $this->settings = $this
    ->config('image_widget_crop.settings');
  $this->imageWidgetCropManager = $iwc_manager;
}