You are here

public function TweetbuttonTweetBlock::blockSubmit in Tweet Button 8

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

File

lib/Drupal/tweetbutton/Plugin/Block/TweetbuttonTweetBlock.php, line 97
Contains \Drupal\tweetbutton\Plugin\Block\TweetbuttonTweetBlock.

Class

TweetbuttonTweetBlock
Provides a 'Tweetbutton Tweet' block.

Namespace

Drupal\tweetbutton\Plugin\Block

Code

public function blockSubmit($form, &$form_state) {
  $settings = $form_state['values']['tweet'];
  $this->configuration = array(
    'text' => $settings['text'],
    'count' => $settings['count'],
    'size' => $settings['size'],
    'dnt' => $settings['dnt'],
  );
}