You are here

public function SimpleSiteSettingsBlock::blockSubmit in Site Settings and Labels 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/SimpleSiteSettingsBlock.php, line 105

Class

SimpleSiteSettingsBlock
Provides a 'SimpleSiteSettingsBlock' block.

Namespace

Drupal\site_settings\Plugin\Block

Code

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