You are here

protected function ApiSync::clearCache in FormAssembly 8

Helper method to clear a set of form and page count from cache.

Parameters

string $id: The cache id.

1 call to ApiSync::clearCache()
ApiSync::syncForms in src/ApiSync.php
Process form data from FormAssembly and perform CRUD ops as needed.

File

src/ApiSync.php, line 197

Class

ApiSync
Service class for FormAssembly API: Handles form sync.

Namespace

Drupal\formassembly

Code

protected function clearCache($id) {
  if (empty($id)) {

    // Nothing to clear.
    return;
  }
  $this->cache
    ->delete($id);
}