Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 7 |
| ImageEffectEditForm | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 7 |
| buildForm | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 5 |
|||
| prepareImageEffect | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\image\Form\ImageEffectEditForm. | |
| */ | |
| namespace Drupal\image\Form; | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\image\ImageStyleInterface; | |
| /** | |
| * Provides an edit form for image effects. | |
| */ | |
| class ImageEffectEditForm extends ImageEffectFormBase { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function buildForm(array $form, FormStateInterface $form_state, ImageStyleInterface $image_style = NULL, $image_effect = NULL) { | |
| $form = parent::buildForm($form, $form_state, $image_style, $image_effect); | |
| $form['#title'] = $this->t('Edit %label effect', array('%label' => $this->imageEffect->label())); | |
| $form['actions']['submit']['#value'] = $this->t('Update effect'); | |
| return $form; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function prepareImageEffect($image_effect) { | |
| return $this->imageStyle->getEffect($image_effect); | |
| } | |
| } |