Conditional memory limit changes in settings.php for Drupal 8

Conditional memory limit changes in settings.php for Drupal 8

if (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], 'edit') !== false ) {
ini_set('memory_limit', '256M');
}