public function MaestroTemplateEditForm::buildForm in Maestro 3.x
Same name and namespace in other branches
- 8.2 src/Form/MaestroTemplateEditForm.php \Drupal\maestro\Form\MaestroTemplateEditForm::buildForm()
Overrides Drupal\Core\Entity\EntityFormController::form().
Builds the entity add/edit form.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The form's form state.
Return value
array An associative array containing the Template add/edit form.
Overrides MaestroTemplateFormBase::buildForm
File
- src/
Form/ MaestroTemplateEditForm.php, line 49
Class
- MaestroTemplateEditForm
- Class MaestroTemplateEditForm.
Namespace
Drupal\maestro\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
// Get anything we need form the base class.
$form['description'] = [
'#markup' => $this
->t("Edit a Maestro Template Definition"),
];
$form = parent::buildForm($form, $form_state);
return $form;
}