You are here

public function TweetbuttonFollowBlock::build in Tweet Button 8

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

File

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

Class

TweetbuttonFollowBlock
Provides a 'Tweetbutton Follow' block.

Namespace

Drupal\tweetbutton\Plugin\Block

Code

public function build() {
  return array(
    '#theme' => 'tweetbutton_follow_display',
    '#options' => array(
      'show_count' => $this->configuration['show_count'],
      'lang' => $this->configuration['lang'],
      'width' => $this->configuration['width'],
      'align' => $this->configuration['align'],
      'show_screen_name' => $this->configuration['show_screen_name'],
      'screen_name' => $this->configuration['screen_name'],
      'size' => $this->configuration['size'],
      'dnt' => $this->configuration['dnt'],
    ),
  );
}