You are here

public function Pool::markDeleted in CMS Content Sync 8

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

Mark the entity as deleted in this pool (reflected on all entity status entities related to this pool).

Parameters

$entity_type:

$entity_uuid:

File

src/Entity/Pool.php, line 280

Class

Pool
Defines the "Content Sync - Pool" entity.

Namespace

Drupal\cms_content_sync\Entity

Code

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