You are here

public function Highcharts::submitConfigurationForm in Charts 5.0.x

Same name and namespace in other branches
  1. 8.4 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 150

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'];
    $this->configuration['exporting_library'] = $values['exporting_library'];
  }
}