public static function EntityStatus::getInfoForPool in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 src/Entity/EntityStatus.php \Drupal\cms_content_sync\Entity\EntityStatus::getInfoForPool()
- 2.1.x src/Entity/EntityStatus.php \Drupal\cms_content_sync\Entity\EntityStatus::getInfoForPool()
Parameters
string $entity_type:
string $entity_uuid:
Return value
Throws
\Exception
4 calls to EntityStatus::getInfoForPool()
- Pool::getNewestTimestamp in src/
Entity/ Pool.php - Get the newest pull/push timestamp for this pool from all status entities that exist for the given entity.
- Pool::isEntityDeleted in src/
Entity/ Pool.php - Check whether this entity has been deleted intentionally already. In this case we ignore push and pull intents for it.
- Pool::markDeleted in src/
Entity/ Pool.php - Mark the entity as deleted in this pool (reflected on all entity status entities related to this pool).
- Pool::setTimestamp in src/
Entity/ Pool.php - Get the newest pull/push timestamp for this pool from all status entities that exist for the given entity.
File
- src/
Entity/ EntityStatus.php, line 101
Class
- EntityStatus
- Defines the "Content Sync - Entity Status" entity type.
Namespace
Drupal\cms_content_sync\EntityCode
public static function getInfoForPool($entity_type, $entity_uuid, Pool $pool) {
if (!$entity_type) {
throw new \Exception('$entity_type is required.');
}
if (!$entity_uuid) {
throw new \Exception('$entity_uuid is required.');
}
/**
* @var EntityStatus[] $entities
*/
return \Drupal::entityTypeManager()
->getStorage('cms_content_sync_entity_status')
->loadByProperties([
'entity_type' => $entity_type,
'entity_uuid' => $entity_uuid,
'pool' => $pool->id,
]);
}