public function getTypoScriptSetup($layoutId)
    {
        $typoScriptSetup = [];

        if ($layoutId == '0' && isset($this->typoScriptSetup['setup.']['default.'])) {
            $typoScriptSetup = $this->typoScriptSetup['setup.']['default.'];
        } elseif ($layoutId && isset($this->typoScriptSetup['setup.'][$layoutId . '.'])) {
            $typoScriptSetup = $this->typoScriptSetup['setup.'][$layoutId . '.'];
        } elseif ($layoutId) {
            $typoScriptSetup = $this->typoScriptSetup['setup.']['default.'];
        }

        // if there is none, we will use a reference to the tt_content setup as a default renderObj
        // without additional stdWrap functionality
        if (empty($typoScriptSetup)) {
            $typoScriptSetup['columns.']['default.']['renderObj'] = '<tt_content';
        }

        return $typoScriptSetup;
    }
public function getTypoScriptSetup($layoutId)
    {
        $typoScriptSetup = [];

        if ($layoutId == '0' && isset($this->typoScriptSetup['setup.']['default.'])) {
            $typoScriptSetup = $this->typoScriptSetup['setup.']['default.'];
        } elseif ($layoutId && isset($this->typoScriptSetup['setup.'][$layoutId . '.'])) {
            $typoScriptSetup = $this->typoScriptSetup['setup.'][$layoutId . '.'];
        } elseif ($layoutId) {
            $typoScriptSetup = $this->typoScriptSetup['setup.']['default.'];
        }

        // if there is none, we will use a reference to the tt_content setup as a default renderObj
        // without additional stdWrap functionality
        if (empty($typoScriptSetup)) {
            $typoScriptSetup['columns.']['default.']['renderObj'] = '<tt_content';
        }

        return $typoScriptSetup;
    }
public function getTypoScriptSetup ( $ layoutId ) { $ typoScriptSetup = [ ] ; if ( $ layoutId == '0' && isset ( $ this -> typoScriptSetup [ 'setup.' ] [ 'default.' ] ) ) { $ typoScriptSetup = $ this -> typoScriptSetup [ 'setup.' ] [ 'default.' ] ; } elseif ( $ layoutId && isset ( $ this -> typoScriptSetup [ 'setup.' ] [ $ layoutId . '.' ] ) ) { $ typoScriptSetup = $ this -> typoScriptSetup [ 'setup.' ] [ $ layoutId . '.' ] ; } elseif ( $ layoutId ) { $ typoScriptSetup = $ this -> typoScriptSetup [ 'setup.' ] [ 'default.' ] ; } // if there is none, we will use a reference to the tt_content setup as a default renderObj // without additional stdWrap functionality if ( empty ( $ typoScriptSetup ) ) { $ typoScriptSetup [ 'columns.' ] [ 'default.' ] [ 'renderObj' ] = '<tt_content' ; } return $ typoScriptSetup ; }
fetches the setup for each of the columns
assigns a default setup if there is none available

@param string $layoutId The selected backend layout of the grid container

@return array The adjusted TypoScript setup for the container or a default setup
fetches the setup for each of the columns assigns a default setup if there is none available