public function AutoHeightSettingsForm::buildForm in jQuery Auto Height 8
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ConfigFormBase::buildForm
File
- src/
Form/ AutoHeightSettingsForm.php, line 33
Class
- AutoHeightSettingsForm
- Configure auto_height settings.
Namespace
Drupal\auto_height\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$config = $this
->config('auto_height.settings');
$form['auto_height_intro'] = array(
'#markup' => '<p>jQuery Auto Height module dynamically adjust column heights, matching the biggest column in each Row.</p>',
);
$form['auto_height_selectors'] = array(
'#type' => 'textarea',
'#title' => $this
->t('jQuery Class Selectors'),
'#default_value' => $config
->get('class_selectors'),
'#rows' => 3,
'#description' => $this
->t('Enter jQuery class selectors for your row column elements e.g., ".classname". Use a new line for each selector.'),
'#required' => TRUE,
);
return parent::buildForm($form, $form_state);
}