You are here

public function TweetbuttonFollowBlock::blockSubmit in Tweet Button 8

Overrides \Drupal\block\BlockBase::blockSubmit().

File

lib/Drupal/tweetbutton/Plugin/Block/TweetbuttonFollowBlock.php, line 133
Contains \Drupal\tweetbutton\Plugin\Block\TweetbuttonFollowBlock.

Class

TweetbuttonFollowBlock
Provides a 'Tweetbutton Follow' block.

Namespace

Drupal\tweetbutton\Plugin\Block

Code

public function blockSubmit($form, &$form_state) {
  $settings = $form_state['values']['follow'];
  $this->configuration = array(
    'show_count' => $settings['show_count'],
    'lang' => $settings['lang'],
    'width' => $settings['width'],
    'align' => $settings['align'],
    'show_screen_name' => $settings['show_screen_name'],
    'screen_name' => $settings['screen_name'],
    'size' => $settings['size'],
    'dnt' => $settings['dnt'],
  );
}