bundle/Controller/API/LoadConfig.php
private function getAvailableColumns(): array
    {
        $availableColumns = [];

        foreach ($this->config->getColumns() as $identifier => $columnData) {
            $availableColumns[] = [
                'id' => $identifier,
                'name' => $this->translator->trans($columnData['name'], [], 'ngcb'),
            ];
        }

        return $availableColumns;
    }
private function getAvailableColumns(): array
    {
        $availableColumns = [];

        foreach ($this->config->getColumns() as $identifier => $columnData) {
            $availableColumns[] = [
                'id' => $identifier,
                'name' => $this->translator->trans($columnData['name'], [], 'ngcb'),
            ];
        }

        return $availableColumns;
    }
private function getAvailableColumns ( ) : array { $ availableColumns = [ ] ; foreach ( $ this -> config -> getColumns ( ) as $ identifier => $ columnData ) { $ availableColumns [ ] = [ 'id' => $ identifier , 'name' => $ this -> translator -> trans ( $ columnData [ 'name' ] , [ ] , 'ngcb' ) , ] ; } return $ availableColumns ; }
Returns the list of available columns from configuration.
Returns the list of available columns from configuration .