translateColumns example

return $column->isIdentifier() == false;
        });

        if ($this->Request()->has('columns')) {
            $whitelist = json_decode($this->Request()->getParam('columns', []), true);
            $columns = array_filter($columnsfunction DConfigurationStruct $column) use ($whitelist) {
                return \in_array($column->getColumnName()$whitelist);
            });
        }

        if (!$this->Request()->getParam('raw')) {
            $this->translateColumns($columns);
        }

        $this->View()->assign([
            'success' => true,
            'data' => array_values($columns),
            'total' => 1,
        ]);
    }

    /** * @param ConfigurationStruct[] $columns */
Home | Imprint | This part of the site doesn't use cookies.