src/Configuration/ViewConfigPass.php
private function processMaxResultsConfig(array $backendConfig)
    {
        foreach ($backendConfig['entities'] as $entityName => $entityConfig) {
            foreach (['list', 'search', 'show'] as $view) {
                if (!isset($entityConfig[$view]['max_results']) && isset($backendConfig[$view]['max_results'])) {
                    $backendConfig['entities'][$entityName][$view]['max_results'] = $backendConfig[$view]['max_results'];
                }
            }
        }

        return $backendConfig;
    }
private function processMaxResultsConfig(array $backendConfig)
    {
        foreach ($backendConfig['entities'] as $entityName => $entityConfig) {
            foreach (['list', 'search', 'show'] as $view) {
                if (!isset($entityConfig[$view]['max_results']) && isset($backendConfig[$view]['max_results'])) {
                    $backendConfig['entities'][$entityName][$view]['max_results'] = $backendConfig[$view]['max_results'];
                }
            }
        }

        return $backendConfig;
    }
This method resolves the 'max_results' inheritance when some global view
(list, show, etc.) defines a global value for all entities that can be
overridden individually by each entity.

@param array $backendConfig

@return array