public function CurrentVisitorMapBlock::blockSubmit in IP Geolocation Views & Maps 8
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ CurrentVisitorMapBlock.php, line 139
Class
- CurrentVisitorMapBlock
- IPGV&M: Set my location .
Namespace
Drupal\ip_geoloc\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
// Migration comment: Part of ip_geoloc_block_save for current_visitor_map delta
// Save options common to all maps.
$this->configuration['ip_geoloc_current_visitor_map_div_style'] = $form_state
->getValue('ip_geoloc_current_visitor_map_div_style');
$this->configuration['ip_geoloc_current_visitor_map_div_id'] = $form_state
->getValue('ip_geoloc_current_visitor_map_div_id');
// @TODO Review function
ip_geoloc_save_map_options('ip_geoloc_current_visitor_map_options', $form_state
->getValue('ip_geoloc_current_visitor_map_options'));
}