You are here

public function RecentVisistorsMapBlock::blockSubmit in IP Geolocation Views & Maps 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/RecentVisistorsMapBlock.php, line 101

Class

RecentVisistorsMapBlock
IPGV&M: Set my location .

Namespace

Drupal\ip_geoloc\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {

  // Migration comment:  Part of ip_geoloc_block_save for recent_visitors_map delta
  // Save options common to all maps.
  $this->configuration['ip_geoloc_recent_visitors_map_div_style'] = $form_state
    ->get('ip_geoloc_recent_visitors_map_div_style');

  // TODO Review function.
  ip_geoloc_save_map_options('ip_geoloc_recent_visitors_map_options', $form_state
    ->get('ip_geoloc_recent_visitors_map_options'));
  $this->configuration['ip_geoloc_recent_visitors_map_number_of_visitors'] = $form_state
    ->get('ip_geoloc_recent_visitors_map_number_of_visitors');
}