You are here

PollSettingsForm.php in Poll 8

Namespace

Drupal\poll\Form

File

src/Form/PollSettingsForm.php
View source
<?php

namespace Drupal\poll\Form;

use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;

/**
 * Form for poll settings.
 */
class PollSettingsForm extends ConfigFormBase {

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'poll_settings';
  }

  /**
   * {@inheritdoc}
   */
  protected function getEditableConfigNames() {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  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;
  }

}

Classes

Namesort descending Description
PollSettingsForm Form for poll settings.