You are here

public function LiveWeatherBlock::blockSubmit in Live Weather 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Block/LiveWeatherBlock.php \Drupal\live_weather\Plugin\Block\LiveWeatherBlock::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/LiveWeatherBlock.php, line 96
Contains \Drupal\live_weather\Plugin\Block\LiveWeatherBlock.

Class

LiveWeatherBlock
Provides a 'Live Weather' block.

Namespace

Drupal\live_weather\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['list'] = $form_state
    ->getValue('location');
}