You are here

public function TweetbuttonTweetBlock::build in Tweet Button 8

Implements \Drupal\block\BlockBase::blockBuild().

File

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

Class

TweetbuttonTweetBlock
Provides a 'Tweetbutton Tweet' block.

Namespace

Drupal\tweetbutton\Plugin\Block

Code

public function build() {
  return array(
    '#theme' => 'tweetbutton_tweet_display',
    '#options' => array(
      'text' => $this->configuration['text'],
      'count' => $this->configuration['count'],
      'size' => $this->configuration['size'],
      'dnt' => $this->configuration['dnt'],
    ),
  );
}