public function AkamaiCacheControl::access in Akamai 8
Same name and namespace in other branches
- 8.2 src/Plugin/Block/AkamaiCacheControl.php \Drupal\akamai\Plugin\Block\AkamaiCacheControl::access()
File
- lib/
Drupal/ akamai/ Plugin/ Block/ AkamaiCacheControl.php, line 26 - Contains \Drupal\akamai\Plugin\Block\AkamaiCacheControl.
Class
- AkamaiCacheControl
- Provides a block for clearing Akamai cache.
Namespace
Drupal\akamai\Plugin\BlockCode
public function access(AccountInterface $account) {
return $account
->hasPermission('purge akamai cache');
}