You are here

public function ContentHubSubscription::purgeEntities in Acquia Content Hub 8

Purge ALL Entities in the Content Hub.

Warning: This function has to be used with care because it has destructive consequences to all data attached to the current subscription.

Return value

string|bool Returns the json data of the entities list or FALSE if fails.

File

src/ContentHubSubscription.php, line 425

Class

ContentHubSubscription
Handles operations on the Acquia Content Hub Subscription.

Namespace

Drupal\acquia_contenthub

Code

public function purgeEntities() {
  if ($list = $this->clientManager
    ->createRequest('purge')) {
    return $list;
  }
  return FALSE;
}