Symbiote\AdvancedWorkflow\Extensions\AdvancedWorkflowExtension::saveAsDraftWithAction
Ocassionally users forget to apply their changes via the standard CMS "Save Draft" button, and select the action button instead - losing their changes.
Calling this from a controller method saves a draft automatically for the user, whenever a workflow action is run See: #72 and #77
Signature
protected function saveAsDraftWithAction(Form
$form,
DataObject
$item )
Parameters
$form
— SilverStripe\Forms\Form
$item
— SilverStripe\ORM\DataObject
Returns
- void