SimpleForm::createAction PHP Method

createAction() protected method

Combined action attribute with current location to get an absolute form target.
protected createAction ( string $action, $page ) : SimpleUrl
$action string Action attribute from form tag.
$page Page location.
return SimpleUrl Absolute form target.
    protected function createAction($action, $page)
    {
        if ($action === '' || $action === false) {
            return $page->expandUrl($page->getUrl());
        }
        return $page->expandUrl(new SimpleUrl($action));
    }