raoul2000\workflow\base\SimpleWorkflowBehavior::getDefaultWorkflowId PHP Method

getDefaultWorkflowId() public method

If no default workflow id has been configured, it is created by using the shortname of the owner model class (i.e. the class name without the namespace part), suffixed with 'Workflow'. For instance, class app\model\Post has a default workflow id equals to **PostWorkflow**.
public getDefaultWorkflowId ( ) : string
return string id for the workflow the owner model is in.
    public function getDefaultWorkflowId()
    {
        if (empty($this->_defaultWorkflowId)) {
            $tokens = explode('\\', get_class($this->owner));
            $this->_defaultWorkflowId = end($tokens) . 'Workflow';
        }
        return $this->_defaultWorkflowId;
    }