/** * {@inheritdoc} */ public function form(array $form, FormStateInterface $form_state) { $form['label'] = array('#type' => 'textfield', '#title' => $this->t('Image style name'), '#default_value' => $this->entity->label(), '#required' => TRUE); $form['name'] = array('#type' => 'machine_name', '#machine_name' => array('exists' => array($this->imageStyleStorage, 'load')), '#default_value' => $this->entity->id(), '#required' => TRUE); return parent::form($form, $form_state); }
/** * {@inheritdoc} */ public function getQuestion() { return $this->t('Are you sure you want to delete the @effect effect from the %style style?', array('%style' => $this->imageStyle->label(), '@effect' => $this->imageEffect->label())); }