function FormWizardBase::customizeForm
Same name in other branches
- 4.0.x src/Wizard/FormWizardBase.php \Drupal\ctools\Wizard\FormWizardBase::customizeForm()
Helper function for generating default form elements.
Parameters
array $form:
\Drupal\Core\Form\FormStateInterface $form_state:
Return value
array
2 calls to FormWizardBase::customizeForm()
- EntityFormWizardBase::customizeForm in src/
Wizard/ EntityFormWizardBase.php - Helper function for generating label and id form elements.
- FormWizardBase::buildForm in src/
Wizard/ FormWizardBase.php - Form constructor.
1 method overrides FormWizardBase::customizeForm()
- EntityFormWizardBase::customizeForm in src/
Wizard/ EntityFormWizardBase.php - Helper function for generating label and id form elements.
File
-
src/
Wizard/ FormWizardBase.php, line 359
Class
- FormWizardBase
- The base class for all form wizard.
Namespace
Drupal\ctools\WizardCode
protected function customizeForm(array $form, FormStateInterface $form_state) {
// Setup the step rendering theme element.
$prefix = [
'#theme' => [
'ctools_wizard_trail',
],
'#wizard' => $this,
'#cached_values' => $form_state->getTemporaryValue('wizard'),
];
$form['#prefix'] = $this->renderer
->render($prefix);
return $form;
}