You are here

public function SocialSimpleBlock::blockSubmit in Social simple 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Block/SocialSimpleBlock.php \Drupal\social_simple\Plugin\Block\SocialSimpleBlock::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/SocialSimpleBlock.php, line 136

Class

SocialSimpleBlock
Provides a 'SocialSimpleBlock' block.

Namespace

Drupal\social_simple\Plugin\Block

Code

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