public function getDefinitionsFor($object)
    {

        // Retrieve the main workflow definition.

        $default = $this->getDefinitionFor($object);
        if ($default) {
            // Merge the additional workflow definitions.

            return array_merge(array(
                $default
            ), $object->AdditionalWorkflowDefinitions()->toArray());
        }
        return null;
    }
public function getDefinitionsFor($object)
    {

        // Retrieve the main workflow definition.

        $default = $this->getDefinitionFor($object);
        if ($default) {
            // Merge the additional workflow definitions.

            return array_merge(array(
                $default
            ), $object->AdditionalWorkflowDefinitions()->toArray());
        }
        return null;
    }
public function getDefinitionsFor ( $ object ) { // Retrieve the main workflow definition. $ default = $ this -> getDefinitionFor ( $ object ) ; if ( $ default ) { // Merge the additional workflow definitions. return array_merge ( array ( $ default ) , $ object -> AdditionalWorkflowDefinitions ( ) -> toArray ( ) ) ; } return null ; }
Retrieves and collates the workflow definitions for a data object, where the first element will be the
main workflow definition.

@param DataObject object
@return array
Retrieves and collates the workflow definitions for a data object where the first element will be the main workflow definition .