Skip to content

Instantly share code, notes, and snippets.

@marcelovani
Created February 22, 2017 17:39
Show Gist options
  • Save marcelovani/240da7e247fa7d2b5da2b56adcc64220 to your computer and use it in GitHub Desktop.
Save marcelovani/240da7e247fa7d2b5da2b56adcc64220 to your computer and use it in GitHub Desktop.
Example of dev settings for drupal 8
<?php
// <DDSETTINGS>
// Please don't edit anything between <DDSETTINGS> tags.
// This section is autogenerated by Acquia Dev Desktop.
if (isset($_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR']) && file_exists($_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR'] . '/loc_subscriptions_dd.inc')) {
//echo $_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR'] . '/loc_subscriptions_dd.inc';
require $_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR'] . '/loc_subscriptions_dd.inc';
$settings['trusted_host_patterns'] = [];
$config_directories = array('sync' => '../config/sync');
}
// </DDSETTINGS>
$config['system.logging']['error_level'] = 'verbose';
// See Debugging D8 https://blog.liip.ch/archive/2016/06/20/lets-debug-drupal-8.html
// uncomment this line to enable the “null cache service”:
// $settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
// uncomment these lines to disable CSS/JS aggregation:
// $config['system.performance']['css']['preprocess'] = FALSE;
// $config['system.performance']['js']['preprocess'] = FALSE;
// uncomment these lines to disable the render cache and the dynamic page cache:
// $settings['cache']['bins']['render'] = 'cache.backend.null';
// $settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
// you can allow test modules and themes to be installed if needed with:
// $settings['extension_discovery_scan_tests'] = TRUE;
// logging messages
// \Drupal::logger('my_module')->error($message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment