You are here

public function MaestroTemplateAddForm::buildForm in Maestro 8.2

Same name and namespace in other branches
  1. 3.x src/Form/MaestroTemplateAddForm.php \Drupal\maestro\Form\MaestroTemplateAddForm::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/MaestroTemplateAddForm.php, line 38

Class

MaestroTemplateAddForm
Class MaestroTemplateAddForm.

Namespace

Drupal\maestro\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['description'] = [
    '#markup' => $this
      ->t("Add a Maestro Template Definition"),
  ];
  $form = parent::buildForm($form, $form_state);
  return $form;
}