You are here

public function MaestroTemplateEditForm::buildForm in Maestro 8.2

Same name and namespace in other branches
  1. 3.x 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\Form

Code

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;
}