public static function getCsvView(RepositoryInterface $table, string $action, bool $includeModel = false, bool $panels = false) : array
    {
        $tableName = App::shortName(get_class($table), 'Model/Table', 'Table');

        $config = (new ModuleConfig(ConfigType::VIEW(), $tableName, $action))->parse();

        if (! isset($config->items)) {
            return [];
        }

        $result = $config->items;

        if ($panels) {
            $result = static::arrangePanels($result);
        }

        if ($includeModel) {
            $result = static::setFieldPluginAndModel($tableName, $result);
        }

        return $result;
    }