public function Workflow::getTypeMap in Workflow 7.2
Gets a the type map for a given workflow.
Parameters
int $sid: A state ID.
Return value
array An array of typemaps.
2 calls to Workflow::getTypeMap()
- Workflow::isDeletable in includes/
Entity/ Workflow.php - Returns if the Workflow may be deleted.
- Workflow::isValid in includes/
Entity/ Workflow.php - Validate the workflow. Generate a message if not correct.
File
- includes/
Entity/ Workflow.php, line 650 - Contains workflow\includes\Entity\Workflow. Contains workflow\includes\Entity\WorkflowController.
Class
Code
public function getTypeMap() {
$result = array();
$type_maps = module_exists('workflownode') ? workflow_get_workflow_type_map_by_wid($this->wid) : array();
foreach ($type_maps as $map) {
$result[] = $map->type;
}
return $result;
}