public function EntityStatus::getEntity 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::getEntity()
- 2.1.x src/Entity/EntityStatus.php \Drupal\cms_content_sync\Entity\EntityStatus::getEntity()
Get the entity this entity status belongs to.
Return value
\Drupal\Core\Entity\EntityInterface
File
- src/
Entity/ EntityStatus.php, line 468
Class
- EntityStatus
- Defines the "Content Sync - Entity Status" entity type.
Namespace
Drupal\cms_content_sync\EntityCode
public function getEntity() {
return \Drupal::service('entity.repository')
->loadEntityByUuid($this
->getEntityTypeName(), $this
->getUuid());
}