public function getLayoutColumns($layoutId)
    {
        if (!isset($this->layoutSetup[$layoutId])) {
            return [];
        }

        if (empty($GLOBALS['tx_gridelements']['ceBackendLayoutData'][$layoutId])) {
            if (!empty($this->layoutSetup[$layoutId]['config']['rows.'])) {
                $GLOBALS['tx_gridelements']['ceBackendLayoutData'][$layoutId] = $this->checkAvailableColumns($this->layoutSetup[$layoutId]);
            }
        }

        return $GLOBALS['tx_gridelements']['ceBackendLayoutData'][$layoutId];
    }
public function getLayoutColumns($layoutId)
    {
        if (!isset($this->layoutSetup[$layoutId])) {
            return [];
        }

        if (empty($GLOBALS['tx_gridelements']['ceBackendLayoutData'][$layoutId])) {
            if (!empty($this->layoutSetup[$layoutId]['config']['rows.'])) {
                $GLOBALS['tx_gridelements']['ceBackendLayoutData'][$layoutId] = $this->checkAvailableColumns($this->layoutSetup[$layoutId]);
            }
        }

        return $GLOBALS['tx_gridelements']['ceBackendLayoutData'][$layoutId];
    }
public function getLayoutColumns ( $ layoutId ) { if ( ! isset ( $ this -> layoutSetup [ $ layoutId ] ) ) { return [ ] ; } if ( empty ( $ GLOBALS [ 'tx_gridelements' ] [ 'ceBackendLayoutData' ] [ $ layoutId ] ) ) { if ( ! empty ( $ this -> layoutSetup [ $ layoutId ] [ 'config' ] [ 'rows.' ] ) ) { $ GLOBALS [ 'tx_gridelements' ] [ 'ceBackendLayoutData' ] [ $ layoutId ] = $ this -> checkAvailableColumns ( $ this -> layoutSetup [ $ layoutId ] ) ; } } return $ GLOBALS [ 'tx_gridelements' ] [ 'ceBackendLayoutData' ] [ $ layoutId ] ; }
fetches all available columns for a certain grid container

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

@return array first key is 'CSV' The columns available for the selected layout as CSV list and the allowed elements for each of the columns
fetches all available columns for a certain grid container