src/Utility/Options.php
public static function getDefaults(RepositoryInterface $table): array
    {
        $result['display_columns'] = static::getListingFields($table);
        $result['sort_by_field'] = current($result['display_columns']);
        $result['sort_by_order'] = static::DEFAULT_SORT_BY_ORDER;
        $result['aggregator'] = static::DEFAULT_AGGREGATOR;

        return $result;
    }
public static function getDefaults(RepositoryInterface $table): array
    {
        $result['display_columns'] = static::getListingFields($table);
        $result['sort_by_field'] = current($result['display_columns']);
        $result['sort_by_order'] = static::DEFAULT_SORT_BY_ORDER;
        $result['aggregator'] = static::DEFAULT_AGGREGATOR;

        return $result;
    }
public static function getDefaults ( RepositoryInterface $ table ) : array { $ result [ 'display_columns' ] = static :: getListingFields ( $ table ) ; $ result [ 'sort_by_field' ] = current ( $ result [ 'display_columns' ] ) ; $ result [ 'sort_by_order' ] = static :: DEFAULT_SORT_BY_ORDER ; $ result [ 'aggregator' ] = static :: DEFAULT_AGGREGATOR ; return $ result ; }
Default search options.

@param \Cake\Datasource\RepositoryInterface $table Table instance
@return mixed[]
Default search options .