function site_audit_env_is_dev in Site Audit 8.2
Same name and namespace in other branches
- 8.3 site_audit.module \site_audit_env_is_dev()
- 7 site_audit.drush.inc \site_audit_env_is_dev()
Determine if in a development environment.
Return value
bool Whether site is in a development environment.
8 calls to site_audit_env_is_dev()
- SiteAuditCheckCachePageExpire::calculateScore in Check/
Cache/ PageExpire.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckCachePreprocessCss::calculateScore in Check/
Cache/ PreprocessCss.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckCachePreprocessJs::calculateScore in Check/
Cache/ PreprocessJs.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckExtensionsDev::calculateScore in Check/
Extensions/ Dev.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckExtensionsDev::getAction in Check/
Extensions/ Dev.php - Implements \SiteAudit\Check\Abstract\getAction().
File
- ./
site_audit.drush.inc, line 430 - Drupal site auditing commands.
Code
function site_audit_env_is_dev() {
// Pantheon.
if (drush_get_option('vendor') == 'pantheon') {
return defined('PANTHEON_ENVIRONMENT') && !in_array(PANTHEON_ENVIRONMENT, array(
'test',
'live',
));
}
// Your host could be here! Submit an issue and/or a patch.
return FALSE;
}