You are here

public function ContentHubSubscription::getModified in Acquia Content Hub 8

Returns the date when this subscription was last modified.

Return value

mixed The date when the subscription was modified. FALSE otherwise.

File

src/ContentHubSubscription.php, line 155

Class

ContentHubSubscription
Handles operations on the Acquia Content Hub Subscription.

Namespace

Drupal\acquia_contenthub

Code

public function getModified() {
  if ($this->settings) {
    return $this->settings
      ->getModified();
  }
  else {
    if ($settings = $this->clientManager
      ->createRequest('getSettings')) {
      return $settings
        ->getModified();
    }
    return FALSE;
  }
}