src/Utility/Field.php
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;
    }
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;
    }
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 ; }
Get View's csv fields.

@param \Cake\Datasource\RepositoryInterface $table Table instance
@param string $action Controller action
@param bool $includeModel Include model flag
@param bool $panels Arrange panels flag
@return mixed[]
Get View s csv fields .