Airship\Cabin\Bridge\Landing\PageManager::processNewDir PHP Method

processNewDir() protected method

protected processNewDir ( string $cabin, string $parent, array $post = [] ) : boolean
$cabin string
$parent string
$post array
return boolean
    protected function processNewDir(string $cabin, string $parent, array $post = []) : bool
    {
        if (!\Airship\all_keys_exist(['url', 'save_btn'], $post)) {
            return false;
        }
        if ($this->pg->createDir($cabin, $parent, $post)) {
            \Airship\redirect($this->airship_cabin_prefix . '/pages/' . $cabin, ['dir' => $parent]);
        }
        return true;
    }