protected function PushIntent::entityChanged in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 src/PushIntent.php \Drupal\cms_content_sync\PushIntent::entityChanged()
- 2.0.x src/PushIntent.php \Drupal\cms_content_sync\PushIntent::entityChanged()
Check whether the entity changed at all since the last push.
Return value
bool
1 call to PushIntent::entityChanged()
- PushIntent::execute in src/
PushIntent.php - Push the given entity.
File
- src/
PushIntent.php, line 1169
Class
- PushIntent
- Class PushIntent.
Namespace
Drupal\cms_content_syncCode
protected function entityChanged() {
$last_hash = $this->entity_status
->getEntityPushHash();
$new_hash = $this->operation
->getEntityHash();
return $last_hash !== $new_hash;
}