public function PollSettingsForm::buildForm in Poll 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/ PollSettingsForm.php, line 30
Class
- PollSettingsForm
- Form for poll settings.
Namespace
Drupal\poll\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
// This exists to make the field UI pages visible and must not be removed.
$form['account'] = array(
'#markup' => '<p>' . t('There are no settings yet.') . '</p>',
);
return $form;
}