You are here

public function YaMapsBlock::blockSubmit in Yandex.Maps 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/YaMapsBlock.php, line 298

Class

YaMapsBlock
Provides a yandex map block.

Namespace

Drupal\yamaps\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  parent::blockSubmit($form, $form_state);
  $this->configuration['yamaps_block_controls'] = $form_state
    ->getValue('yamaps_block_controls');
  $this->configuration['yamaps_block_traffic'] = $form_state
    ->getValue('yamaps_block_traffic');
  $this->configuration['yamaps_block_clusterer'] = $form_state
    ->getValue('yamaps_block_clusterer');
  $this->configuration['yamaps_block_auto_zoom'] = $form_state
    ->getValue('yamaps_block_auto_zoom');
  $this->configuration['yamaps_block_behaviors'] = $form_state
    ->getValue('yamaps_block_behaviors');
  $this->configuration['yamaps_block_width'] = $form_state
    ->getValue('yamaps_block_width');
  $this->configuration['yamaps_block_height'] = $form_state
    ->getValue('yamaps_block_height');
  $this->configuration['yamaps_block_coords'] = $form_state
    ->getValue('yamaps_block_coords');
  $this->configuration['yamaps_block_type'] = $form_state
    ->getValue('yamaps_block_type');
  $this->configuration['yamaps_block_placemarks'] = $form_state
    ->getValue('yamaps_block_placemarks');
  $this->configuration['yamaps_block_lines'] = $form_state
    ->getValue('yamaps_block_lines');
  $this->configuration['yamaps_block_polygons'] = $form_state
    ->getValue('yamaps_block_polygons');
  $this->configuration['yamaps_block_routes'] = $form_state
    ->getValue('yamaps_block_routes');
}