function ImageStyleEditForm::__construct

Same name in other branches
  1. 9 core/modules/image/src/Form/ImageStyleEditForm.php \Drupal\image\Form\ImageStyleEditForm::__construct()
  2. 8.9.x core/modules/image/src/Form/ImageStyleEditForm.php \Drupal\image\Form\ImageStyleEditForm::__construct()
  3. 10 core/modules/image/src/Form/ImageStyleEditForm.php \Drupal\image\Form\ImageStyleEditForm::__construct()

Constructs an ImageStyleEditForm object.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $image_style_storage: The storage.

\Drupal\image\ImageEffectManager $image_effect_manager: The image effect manager service.

Overrides ImageStyleFormBase::__construct

File

core/modules/image/src/Form/ImageStyleEditForm.php, line 35

Class

ImageStyleEditForm
Controller for image style edit form.

Namespace

Drupal\image\Form

Code

public function __construct(EntityStorageInterface $image_style_storage, ImageEffectManager $image_effect_manager) {
    parent::__construct($image_style_storage);
    $this->imageEffectManager = $image_effect_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.