public function getExcludeLayouts($container, NewContentElementController $parentObject)
    {
        $excludeLayouts = 0;
        $excludeArray = [];

        $pageID = $parentObject->id;

        $TSconfig = BackendUtility::getPagesTSconfig($pageID);

        if ($container && $TSconfig['TCEFORM.']['tt_content.']['tx_gridelements_backend_layout.']['itemsProcFunc.']['topLevelLayouts']) {
            $excludeArray[] = trim($TSconfig['TCEFORM.']['tt_content.']['tx_gridelements_backend_layout.']['itemsProcFunc.']['topLevelLayouts']);
        }

        $excludeLayoutsTS = $TSconfig['TCEFORM.']['tt_content.']['tx_gridelements_backend_layout.']['itemsProcFunc.']['excludeLayouts'];

        if ($excludeLayoutsTS) {
            $excludeArray[] = trim($excludeLayoutsTS);
        }

        $userExcludeLayoutsTS = $TSconfig['TCEFORM.']['tt_content.']['tx_gridelements_backend_layout.']['itemsProcFunc.']['userExcludeLayouts'];

        if ($userExcludeLayoutsTS) {
            $excludeArray[] = trim($userExcludeLayoutsTS);
        }

        if (!empty($excludeArray)) {
            $excludeLayouts = implode(',', $excludeArray);
        }

        return $excludeLayouts;
    }
public function getExcludeLayouts($container, NewContentElementController $parentObject)
    {
        $excludeLayouts = 0;
        $excludeArray = [];

        $pageID = $parentObject->id;

        $TSconfig = BackendUtility::getPagesTSconfig($pageID);

        if ($container && $TSconfig['TCEFORM.']['tt_content.']['tx_gridelements_backend_layout.']['itemsProcFunc.']['topLevelLayouts']) {
            $excludeArray[] = trim($TSconfig['TCEFORM.']['tt_content.']['tx_gridelements_backend_layout.']['itemsProcFunc.']['topLevelLayouts']);
        }

        $excludeLayoutsTS = $TSconfig['TCEFORM.']['tt_content.']['tx_gridelements_backend_layout.']['itemsProcFunc.']['excludeLayouts'];

        if ($excludeLayoutsTS) {
            $excludeArray[] = trim($excludeLayoutsTS);
        }

        $userExcludeLayoutsTS = $TSconfig['TCEFORM.']['tt_content.']['tx_gridelements_backend_layout.']['itemsProcFunc.']['userExcludeLayouts'];

        if ($userExcludeLayoutsTS) {
            $excludeArray[] = trim($userExcludeLayoutsTS);
        }

        if (!empty($excludeArray)) {
            $excludeLayouts = implode(',', $excludeArray);
        }

        return $excludeLayouts;
    }
public function getExcludeLayouts ( $ container , NewContentElementController $ parentObject ) { $ excludeLayouts = 0 ; $ excludeArray = [ ] ; $ pageID = $ parentObject -> id ; $ TSconfig = BackendUtility :: getPagesTSconfig ( $ pageID ) ; if ( $ container && $ TSconfig [ 'TCEFORM.' ] [ 'tt_content.' ] [ 'tx_gridelements_backend_layout.' ] [ 'itemsProcFunc.' ] [ 'topLevelLayouts' ] ) { $ excludeArray [ ] = trim ( $ TSconfig [ 'TCEFORM.' ] [ 'tt_content.' ] [ 'tx_gridelements_backend_layout.' ] [ 'itemsProcFunc.' ] [ 'topLevelLayouts' ] ) ; } $ excludeLayoutsTS = $ TSconfig [ 'TCEFORM.' ] [ 'tt_content.' ] [ 'tx_gridelements_backend_layout.' ] [ 'itemsProcFunc.' ] [ 'excludeLayouts' ] ; if ( $ excludeLayoutsTS ) { $ excludeArray [ ] = trim ( $ excludeLayoutsTS ) ; } $ userExcludeLayoutsTS = $ TSconfig [ 'TCEFORM.' ] [ 'tt_content.' ] [ 'tx_gridelements_backend_layout.' ] [ 'itemsProcFunc.' ] [ 'userExcludeLayouts' ] ; if ( $ userExcludeLayoutsTS ) { $ excludeArray [ ] = trim ( $ userExcludeLayoutsTS ) ; } if ( ! empty ( $ excludeArray ) ) { $ excludeLayouts = implode ( ',' , $ excludeArray ) ; } return $ excludeLayouts ; }
retrieve layouts to exclude from pageTSconfig

@param int $container
@param NewContentElementController $parentObject The parent object that triggered this hook

@return array
retrieve layouts to exclude from pageTSconfig