You are here

public function TweetbuttonTweetBlock::access in Tweet Button 8

File

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

Class

TweetbuttonTweetBlock
Provides a 'Tweetbutton Tweet' block.

Namespace

Drupal\tweetbutton\Plugin\Block

Code

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