You are here

public function TweetbuttonFollowBlock::access in Tweet Button 8

File

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

Class

TweetbuttonFollowBlock
Provides a 'Tweetbutton Follow' block.

Namespace

Drupal\tweetbutton\Plugin\Block

Code

public function access(AccountInterface $account) {
  return $account
    ->hasPermission('access tweetbutton');
}