You are here

public function textResizeBlock::access in Text Resize 8

Overrides BlockPluginTrait::access

File

src/Plugin/Block/textResizeBlock.php, line 31
Contains \Drupal\text_resize\Plugin\Block\textResizeBlock.

Class

textResizeBlock
Provides a text resize block.

Namespace

Drupal\text_resize\Plugin\Block

Code

public function access(AccountInterface $account, $return_as_object = FALSE) {
  $access = $this
    ->blockAccess($account);
  return $return_as_object ? $access : $access
    ->isAllowed('access content');

  /* return $account->hasPermission('access content'); */
}