public function LiveWeatherBlock::blockSubmit in Live Weather 8.2
Same name and namespace in other branches
- 8 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\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['list'] = $form_state
->getValue('location');
}