public function columnsItemsProcFunc(array &$params)
    {
        $this->init($params['row']['pid']);
        $gridContainerId = is_array($params['row']['tx_gridelements_container'])
            ? (int)$params['row']['tx_gridelements_container'][0]
            : (int)$params['row']['tx_gridelements_container'];

        if ($gridContainerId > 0) {
            $gridElement = $this->layoutSetup->cacheCurrentParent($gridContainerId, true);
            $params['items'] = $this->layoutSetup->getLayoutColumnsSelectItems($gridElement['tx_gridelements_backend_layout']);

            $ContentType = is_array($params['row']['CType']) ? $params['row']['CType'][0] : $params['row']['CType'];
            if (!empty($ContentType) && is_array($params['items'])) {
                foreach ($params['items'] as $itemKey => $itemArray) {
                    if ($itemArray[3] !== '' && $itemArray[3] !== '*'
                        && !GeneralUtility::inList($itemArray[3], $ContentType)
                    ) {
                        unset($params['items'][$itemKey]);
                    }
                }
            }
        }
    }
public function columnsItemsProcFunc(array &$params)
    {
        $this->init($params['row']['pid']);
        $gridContainerId = is_array($params['row']['tx_gridelements_container'])
            ? (int)$params['row']['tx_gridelements_container'][0]
            : (int)$params['row']['tx_gridelements_container'];

        if ($gridContainerId > 0) {
            $gridElement = $this->layoutSetup->cacheCurrentParent($gridContainerId, true);
            $params['items'] = $this->layoutSetup->getLayoutColumnsSelectItems($gridElement['tx_gridelements_backend_layout']);

            $ContentType = is_array($params['row']['CType']) ? $params['row']['CType'][0] : $params['row']['CType'];
            if (!empty($ContentType) && is_array($params['items'])) {
                foreach ($params['items'] as $itemKey => $itemArray) {
                    if ($itemArray[3] !== '' && $itemArray[3] !== '*'
                        && !GeneralUtility::inList($itemArray[3], $ContentType)
                    ) {
                        unset($params['items'][$itemKey]);
                    }
                }
            }
        }
    }
public function columnsItemsProcFunc ( array & $ params ) { $ this -> init ( $ params [ 'row' ] [ 'pid' ] ) ; $ gridContainerId = is_array ( $ params [ 'row' ] [ 'tx_gridelements_container' ] ) ? ( int ) $ params [ 'row' ] [ 'tx_gridelements_container' ] [ 0 ] : ( int ) $ params [ 'row' ] [ 'tx_gridelements_container' ] ; if ( $ gridContainerId > 0 ) { $ gridElement = $ this -> layoutSetup -> cacheCurrentParent ( $ gridContainerId , true ) ; $ params [ 'items' ] = $ this -> layoutSetup -> getLayoutColumnsSelectItems ( $ gridElement [ 'tx_gridelements_backend_layout' ] ) ; $ ContentType = is_array ( $ params [ 'row' ] [ 'CType' ] ) ? $ params [ 'row' ] [ 'CType' ] [ 0 ] : $ params [ 'row' ] [ 'CType' ] ; if ( ! empty ( $ ContentType ) && is_array ( $ params [ 'items' ] ) ) { foreach ( $ params [ 'items' ] as $ itemKey => $ itemArray ) { if ( $ itemArray [ 3 ] !== '' && $ itemArray [ 3 ] !== '*' && ! GeneralUtility :: inList ( $ itemArray [ 3 ] , $ ContentType ) ) { unset ( $ params [ 'items' ] [ $ itemKey ] ) ; } } } } }
ItemProcFunc for columns items

@param array $params An array containing the items and parameters for the list of items
ItemProcFunc for columns items