/** * Helper function used to remove a workflow. * Will remove the workflow, its events, its triggers and its group link. * * @param eZWorkflow $workflow * @return void */ protected function removeWorkflow(eZWorkflow $workflow) { // Remove trigger eZTrigger::removeTriggerForWorkflow($workflow->attribute('id')); // remove the workflow, its events and the group link eZWorkflow::removeEvents(false, $workflow->attribute('id'), $workflow->attribute('version')); eZWorkflow::removeWorkflow($this->workflow->attribute('id'), $workflow->attribute('version')); eZWorkflowGroupLink::removeWorkflowMembers($workflow->attribute('id'), $workflow->attribute('version')); }