You are here

public function ChartsConfigForm::buildForm in Charts 8.3

Same name in this branch
  1. 8.3 src/Form/ChartsConfigForm.php \Drupal\charts\Form\ChartsConfigForm::buildForm()
  2. 8.3 modules/charts_chartjs/src/Form/ChartsConfigForm.php \Drupal\charts_chartjs\Form\ChartsConfigForm::buildForm()
  3. 8.3 modules/charts_google/src/Form/ChartsConfigForm.php \Drupal\charts_google\Form\ChartsConfigForm::buildForm()
  4. 8.3 modules/charts_billboard/src/Form/ChartsConfigForm.php \Drupal\charts_billboard\Form\ChartsConfigForm::buildForm()
  5. 8.3 modules/charts_c3/src/Form/ChartsConfigForm.php \Drupal\charts_c3\Form\ChartsConfigForm::buildForm()
  6. 8.3 modules/charts_highcharts/src/Form/ChartsConfigForm.php \Drupal\charts_highcharts\Form\ChartsConfigForm::buildForm()

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

modules/charts_google/src/Form/ChartsConfigForm.php, line 32

Class

ChartsConfigForm
Charts Config Form.

Namespace

Drupal\charts_google\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('charts_google.settings');
  $form['placeholder'] = [
    '#title' => $this
      ->t('Placeholder'),
    '#type' => 'fieldset',
    '#description' => $this
      ->t('This is a placeholder for Google-specific library options. If you would like to help build this out, please work from <a href="@issue_link">this issue</a>.', [
      '@issue_link' => Url::fromUri('https://www.drupal.org/project/charts/issues/3046980')
        ->toString(),
    ]),
  ];
  return parent::buildForm($form, $form_state);
}