You are here

protected function PushIntent::entityChanged in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/PushIntent.php \Drupal\cms_content_sync\PushIntent::entityChanged()
  2. 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 1133

Class

PushIntent
Class PushIntent.

Namespace

Drupal\cms_content_sync

Code

protected function entityChanged() {
  $last_hash = $this->entity_status
    ->getEntityPushHash();
  $new_hash = $this->operation
    ->getEntityHash();
  return $last_hash !== $new_hash;
}