public function EntityStatus::getFlow in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 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 967
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];
}