You are here

class AkamaiCacheControl in Akamai 8.2

Same name and namespace in other branches
  1. 8 lib/Drupal/akamai/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

Expanded class hierarchy of AkamaiCacheControl

File

src/Plugin/Block/AkamaiCacheControl.php, line 21
Contains \Drupal\akamai\Plugin\Block\AkamaiCacheControl.

Namespace

Drupal\akamai\Plugin\Block
View 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