You are here

public function Pool::isEntityDeleted in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 src/Entity/Pool.php \Drupal\cms_content_sync\Entity\Pool::isEntityDeleted()
  2. 2.0.x src/Entity/Pool.php \Drupal\cms_content_sync\Entity\Pool::isEntityDeleted()

Check whether this entity has been deleted intentionally already. In this case we ignore push and pull intents for it.

Parameters

$entity_type:

$entity_uuid:

Return value

bool

File

src/Entity/Pool.php, line 313

Class

Pool
Defines the "Content Sync - Pool" entity.

Namespace

Drupal\cms_content_sync\Entity

Code

public function isEntityDeleted($entity_type, $entity_uuid) {
  $entity_status = EntityStatus::getInfoForPool($entity_type, $entity_uuid, $this);
  foreach ($entity_status as $info) {
    if ($info
      ->isDeleted()) {
      return true;
    }
  }
  return false;
}