You are here

public function TwitterFeedBlock::blockSubmit in Twitter_Feed 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/TwitterFeedBlock.php, line 109

Class

TwitterFeedBlock
Provides a 'TwitterFeedBlock' block.

Namespace

Drupal\twitter_feed\Plugin\Block

Code

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