示例#1
0
 /**
  * Returns whether or not an element has a workflow
  * @param Asset|ConcreteObject|Document $element
  * @return bool
  */
 public static function elementHasWorkflow(AbstractElement $element)
 {
     $config = Workflow\Config::getElementWorkflowConfig($element);
     if (is_array($config)) {
         return true;
     }
     return false;
 }