I want to be able to theme a custom form I create using a custom module that builds a form. The form is created programmatically using the code below:
public function buildForm(array $form, FormStateInterface $form_state) {
$form['name'] = array(
'#type' => 'textfield',
'#title' => $this->t('Name'),
'#required' => TRUE
);
$form['address'] = array(
'#type' => 'textfield',
'#title' => $this->t('Address'),
'#required' => TRUE
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => $this->t('Submit'),
);
return $form;
}
This form is rendered on the Drupal 8 back-end and uses the admin theme classy BEGIN OUTPUT from 'core/themes/classy/templates/form/form.html.twig'
. However there isn't a override file name suggestion.
How would I theme this form?