You are here

public function GeofieldMapLegend::blockSubmit in Geofield Map 8.2

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/GeofieldMapLegend.php, line 366

Class

GeofieldMapLegend
Provides a custom Geofield Map Legend block.

Namespace

Drupal\geofield_map\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['geofield_map_legend'] = $form_state
    ->getValue('geofield_map_legend');
  $this->configuration['legend_caption'] = $form_state
    ->getValue('legend_caption');
  $this->configuration['legend_notes'] = $form_state
    ->getValue('legend_notes');
  $this->configuration['values_label'] = $form_state
    ->getValue('values_label');
  $this->configuration['markers_label'] = $form_state
    ->getValue('markers_label');
  $this->configuration['markers_image_style'] = $form_state
    ->getValue('markers_image_style');
  $this->configuration['markers_width'] = $form_state
    ->getValue('markers_width');
}