class AkamaiCacheControl in Akamai 8
Same name and namespace in other branches
- 8.2 src/Plugin/Block/AkamaiCacheControl.php \Drupal\akamai\Plugin\Block\AkamaiCacheControl
Provides a block for clearing Akamai cache.
Plugin annotation
@Block(
id = "akamai_cache_control",
admin_label = @Translation("Akamai Cache Control")
)
Hierarchy
- class \Drupal\akamai\Plugin\Block\AkamaiCacheControl extends \Drupal\block\BlockBase
Expanded class hierarchy of AkamaiCacheControl
File
- lib/
Drupal/ akamai/ Plugin/ Block/ AkamaiCacheControl.php, line 21 - Contains \Drupal\akamai\Plugin\Block\AkamaiCacheControl.
Namespace
Drupal\akamai\Plugin\BlockView source
class AkamaiCacheControl extends BlockBase {
/**
* {@inheritdoc}
*/
public function access(AccountInterface $account) {
return $account
->hasPermission('purge akamai cache');
}
/**
* {@inheritdoc}
*/
public function build() {
return \Drupal::formBuilder()
->getForm('Drupal\\akamai\\Form\\CacheControlBlockForm');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AkamaiCacheControl:: |
public | function | ||
AkamaiCacheControl:: |
public | function |