YamlFormHandlerEditForm.php in YAML Form 8
File
src/Form/YamlFormHandlerEditForm.php
View source
<?php
namespace Drupal\yamlform\Form;
use Drupal\Core\Form\FormStateInterface;
use Drupal\yamlform\YamlFormInterface;
class YamlFormHandlerEditForm extends YamlFormHandlerFormBase {
public function buildForm(array $form, FormStateInterface $form_state, YamlFormInterface $yamlform = NULL, $yamlform_handler = NULL) {
$form = parent::buildForm($form, $form_state, $yamlform, $yamlform_handler);
$form['#title'] = $this
->t('Edit @label handler', [
'@label' => $this->yamlformHandler
->label(),
]);
return $form;
}
protected function prepareYamlFormHandler($yamlform_handler) {
return $this->yamlform
->getHandler($yamlform_handler);
}
}