You are here

public function ChartsBlock::blockSubmit in Charts 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/charts_blocks/src/Plugin/Block/ChartsBlock.php \Drupal\charts_blocks\Plugin\Block\ChartsBlock::blockSubmit()
  2. 8.3 modules/charts_blocks/src/Plugin/Block/ChartsBlock.php \Drupal\charts_blocks\Plugin\Block\ChartsBlock::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

modules/charts_blocks/src/Plugin/Block/ChartsBlock.php, line 88

Class

ChartsBlock
Provides a 'ChartsBlock' block.

Namespace

Drupal\charts_blocks\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['chart'] = $form_state
    ->getValue([
    'chart',
    'settings',
  ]);
}