App\Core\Controller::getLayoutName PHP Method

getLayoutName() public method

Return the current Layout (class) name.
public getLayoutName ( ) : string
return string
    public function getLayoutName()
    {
        if ($this->layout instanceof View) {
            return class_name($this->layout);
        } else {
            if (is_string($this->layout)) {
                return $this->layout;
            }
        }
    }