You are here

public function ContentHubEntitiesTracking::hasLocalChange in Acquia Content Hub 8

Check if the entity has local change or not.

Return value

bool TRUE if the entity has local change, FALSE otherwise.

1 call to ContentHubEntitiesTracking::hasLocalChange()
ContentHubEntitiesTracking::setAutoUpdate in src/ContentHubEntitiesTracking.php
Sets the entity to auto-update.

File

src/ContentHubEntitiesTracking.php, line 337

Class

ContentHubEntitiesTracking
Tracks in a table the list of all entities imported from Content Hub.

Namespace

Drupal\acquia_contenthub

Code

public function hasLocalChange() {
  return $this
    ->getImportStatus() === self::PENDING_SYNC || $this
    ->getImportStatus() === self::HAS_LOCAL_CHANGE;
}