You are here

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

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/GeoCodeAddressBlock.php, line 286

Class

GeoCodeAddressBlock
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 geocode_address delta.
  foreach ($form_state
    ->getValues() as $variable => $value) {
    if (strpos($variable, 'ip_geoloc') === 0) {
      $this->configuration[$variable] = $value;
    }
  }
}