You are here

protected function ImageEffectEditForm::prepareImageEffect in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/image/src/Form/ImageEffectEditForm.php \Drupal\image\Form\ImageEffectEditForm::prepareImageEffect()

Converts an image effect ID into an object.

Parameters

string $image_effect: The image effect ID.

Return value

\Drupal\image\ImageEffectInterface The image effect object.

Overrides ImageEffectFormBase::prepareImageEffect

File

core/modules/image/src/Form/ImageEffectEditForm.php, line 30

Class

ImageEffectEditForm
Provides an edit form for image effects.

Namespace

Drupal\image\Form

Code

protected function prepareImageEffect($image_effect) {
  return $this->imageStyle
    ->getEffect($image_effect);
}