You are here

public function AcsfLog::enabled in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 src/AcsfLog.php \Drupal\acsf\AcsfLog::enabled()

Determines whether logging is enabled or blocked globally.

1 call to AcsfLog::enabled()
AcsfLog::log in src/AcsfLog.php
Logs the specified message to the Site Factory via the REST API.

File

src/AcsfLog.php, line 68

Class

AcsfLog
ACSF Log.

Namespace

Drupal\acsf

Code

public function enabled() {
  $site = $_ENV['AH_SITE_GROUP'];
  $env = $_ENV['AH_SITE_ENVIRONMENT'];
  return !file_exists(sprintf('/mnt/files/%s.%s/files-private/sf-log-block', $site, $env));
}