/** * 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 * * @return void */ public function layoutItemsProcFunc(&$params) { $this->init($params['row']['pid']); $layoutSelectItems = $this->layoutSetup->getLayoutSelectItems($params['row']['colPos']); $params['items'] = ArrayUtility::keepItemsInArray($layoutSelectItems, $params['items'], true); }