public function EntityStatus::getFlow in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Entity/EntityStatus.php \Drupal\cms_content_sync\Entity\EntityStatus::getFlow()
- 2.0.x src/Entity/EntityStatus.php \Drupal\cms_content_sync\Entity\EntityStatus::getFlow()
Get the flow.
Return value
File
- src/
Entity/ EntityStatus.php, line 964
Class
- EntityStatus
- Defines the "Content Sync - Entity Status" entity type.
Namespace
Drupal\cms_content_sync\EntityCode
public function getFlow() {
if (empty($this
->get('flow')->value)) {
return null;
}
$flows = Flow::getAll();
if (empty($flows[$this
->get('flow')->value])) {
return null;
}
return $flows[$this
->get('flow')->value];
}