You are here

public function EdgeEntityCacheConfigFormBase::invalidateCache in Apigee Edge 8

Submit handler that invalidates stored cache items from of an entity type.

Parameters

array $form: Form array.

\Drupal\Core\Form\FormStateInterface $form_state: Form state object.

File

src/Form/EdgeEntityCacheConfigFormBase.php, line 80

Class

EdgeEntityCacheConfigFormBase
Base cache expiration config form for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Form

Code

public function invalidateCache(array $form, FormStateInterface $form_state) {
  Cache::invalidateTags([
    $this
      ->getEntityType(),
  ]);
}