Skip to content

Instantly share code, notes, and snippets.

@ivangrynenko
Created May 24, 2022 05:59
Show Gist options
  • Save ivangrynenko/2b1bfa84b0e0ea435bcd0c8f9fcd9059 to your computer and use it in GitHub Desktop.
Save ivangrynenko/2b1bfa84b0e0ea435bcd0c8f9fcd9059 to your computer and use it in GitHub Desktop.
Quant override for non-production environments.
<?php
if (getenv('LAGOON_ENVIRONMENT_TYPE') !== 'production') {
/**
* Disable Quant in non-production environments.
* Applicable to Drupal 8 or 9.
*/
$config['quant.settings']['quant_enabled'] = 0;
$config['quant.settings']['quant_enabled_nodes'] = 0;
$config['quant.settings']['quant_enabled_taxonomy'] = 0;
$config['quant.settings']['quant_enabled_views'] = 0;
$config['quant.settings']['quant_enabled_redirects'] = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment