public function Pool::markDeleted in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 src/Entity/Pool.php \Drupal\cms_content_sync\Entity\Pool::markDeleted()
- 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 295
Class
- Pool
- Defines the "Content Sync - Pool" entity.
Namespace
Drupal\cms_content_sync\EntityCode
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();
}
}