function ImageEffectFormBase::prepareImageEffect

Same name in other branches
  1. 9 core/modules/image/src/Form/ImageEffectFormBase.php \Drupal\image\Form\ImageEffectFormBase::prepareImageEffect()
  2. 8.9.x core/modules/image/src/Form/ImageEffectFormBase.php \Drupal\image\Form\ImageEffectFormBase::prepareImageEffect()
  3. 11.x core/modules/image/src/Form/ImageEffectFormBase.php \Drupal\image\Form\ImageEffectFormBase::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.

1 call to ImageEffectFormBase::prepareImageEffect()
ImageEffectFormBase::buildForm in core/modules/image/src/Form/ImageEffectFormBase.php
2 methods override ImageEffectFormBase::prepareImageEffect()
ImageEffectAddForm::prepareImageEffect in core/modules/image/src/Form/ImageEffectAddForm.php
Converts an image effect ID into an object.
ImageEffectEditForm::prepareImageEffect in core/modules/image/src/Form/ImageEffectEditForm.php
Converts an image effect ID into an object.

File

core/modules/image/src/Form/ImageEffectFormBase.php, line 146

Class

ImageEffectFormBase
Provides a base form for image effects.

Namespace

Drupal\image\Form

Code

protected abstract function prepareImageEffect($image_effect);

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