public function ModuleMiscForm::form in Module Builder 8.3
Gets the actual form array to be built.
Overrides ComponentSectionForm::form
See also
\Drupal\Core\Entity\EntityForm::processForm()
\Drupal\Core\Entity\EntityForm::afterBuild()
File
- src/
Form/ ModuleMiscForm.php, line 45
Class
- ModuleMiscForm
- Form for selecting other components to implement.
Namespace
Drupal\module_builder\FormCode
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
// Change the help text form element to a textarea.
// The check is for the benefit of functional tests. TODO: clean this up!
if (isset($form['data']['module_help_text'])) {
$form['data']['module_help_text']['#type'] = 'textarea';
}
return $form;
}