Loading src/Plugin/Block/CounterBlock.php +0 −8 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ namespace Drupal\counter\Plugin\Block; use Drupal\Component\Utility\Html; use Drupal\Core\Access\AccessResult; use Drupal\Core\Block\BlockBase; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Database\Connection; Loading Loading @@ -102,13 +101,6 @@ class CounterBlock extends BlockBase implements ContainerFactoryPluginInterface ); } /** * {@inheritdoc} */ protected function blockAccess(AccountInterface $account) { return AccessResult::allowedIfHasPermission($account, 'administer counter'); } /** * {@inheritdoc} */ Loading Loading
src/Plugin/Block/CounterBlock.php +0 −8 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ namespace Drupal\counter\Plugin\Block; use Drupal\Component\Utility\Html; use Drupal\Core\Access\AccessResult; use Drupal\Core\Block\BlockBase; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Database\Connection; Loading Loading @@ -102,13 +101,6 @@ class CounterBlock extends BlockBase implements ContainerFactoryPluginInterface ); } /** * {@inheritdoc} */ protected function blockAccess(AccountInterface $account) { return AccessResult::allowedIfHasPermission($account, 'administer counter'); } /** * {@inheritdoc} */ Loading