You are here

public function TweetbuttonTweetBlock::defaultConfiguration in Tweet Button 8

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

File

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

Class

TweetbuttonTweetBlock
Provides a 'Tweetbutton Tweet' block.

Namespace

Drupal\tweetbutton\Plugin\Block

Code

public function defaultConfiguration() {
  $config = \Drupal::config('tweetbutton.settings');
  $default = array(
    'label_display' => FALSE,
    'text' => '',
    'count' => 'horizontal',
    'lang' => 'en',
    'size' => 'medium',
    'dnt' => FALSE,
  );
  return $default;
}