public function layoutItemsProcFunc(array &$params)
    {
        $this->init($params['row']['pid']);
        $layoutSelectItems = $this->layoutSetup->getLayoutSelectItems(
            isset($params['row']['colPos'][0]) ? $params['row']['colPos'][0] : $params['row']['colPos'],
            $params['row']['tx_gridelements_columns'],
            $params['row']['tx_gridelements_container'],
            $this->layoutSetup->getRealPid()
        );
        $params['items'] = ArrayUtility::keepItemsInArray($layoutSelectItems, $params['items'], true);
    }
public function layoutItemsProcFunc(array &$params)
    {
        $this->init($params['row']['pid']);
        $layoutSelectItems = $this->layoutSetup->getLayoutSelectItems(
            isset($params['row']['colPos'][0]) ? $params['row']['colPos'][0] : $params['row']['colPos'],
            $params['row']['tx_gridelements_columns'],
            $params['row']['tx_gridelements_container'],
            $this->layoutSetup->getRealPid()
        );
        $params['items'] = ArrayUtility::keepItemsInArray($layoutSelectItems, $params['items'], true);
    }
public function layoutItemsProcFunc ( array & $ params ) { $ this -> init ( $ params [ 'row' ] [ 'pid' ] ) ; $ layoutSelectItems = $ this -> layoutSetup -> getLayoutSelectItems ( isset ( $ params [ 'row' ] [ 'colPos' ] [ 0 ] ) ? $ params [ 'row' ] [ 'colPos' ] [ 0 ] : $ params [ 'row' ] [ 'colPos' ] , $ params [ 'row' ] [ 'tx_gridelements_columns' ] , $ params [ 'row' ] [ 'tx_gridelements_container' ] , $ this -> layoutSetup -> getRealPid ( ) ) ; $ params [ 'items' ] = ArrayUtility :: keepItemsInArray ( $ layoutSelectItems , $ params [ 'items' ] , true ) ; }
ItemProcFunc for layout items
removes items that are available for grid boxes on the first level only
and items that are excluded for a certain branch or user

@param array $params An array containing the items and parameters for the list of items
ItemProcFunc for layout items removes items that are available for grid boxes on the first level only and items that are excluded for a certain branch or user