You are here

public function Highcharts::submitConfigurationForm in Charts 8.4

Same name and namespace in other branches
  1. 5.0.x modules/charts_highcharts/src/Plugin/chart/Library/Highcharts.php \Drupal\charts_highcharts\Plugin\chart\Library\Highcharts::submitConfigurationForm()

Build configurations.

Parameters

array $form: The form element.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Overrides ChartBase::submitConfigurationForm

File

modules/charts_highcharts/src/Plugin/chart/Library/Highcharts.php, line 143

Class

Highcharts
Defines a concrete class for a Highcharts.

Namespace

Drupal\charts_highcharts\Plugin\chart\Library

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  parent::submitConfigurationForm($form, $form_state);
  if (!$form_state
    ->getErrors()) {
    $values = $form_state
      ->getValue($form['#parents']);
    $this->configuration['legend'] = $values['legend'];
  }
}