protected static function Securepages::log in Secure Pages 8
Log a message for debugging purposes.
Parameters
string $message: Message to be logged. Potential placeholders include @path and @pattern.
string $path: Path being redirected.
string $pattern: (Optional) pattern being matched, such as form ids or paths compared.
1 call to Securepages::log()
- Securepages::checkRedirect in src/
Securepages.php  - Checks the current request and see if we need to redirect.
 
File
- src/
Securepages.php, line 230  - Contains \Drupal\securepages\Securepages.
 
Class
- Securepages
 - Utility class for global functionality.
 
Namespace
Drupal\securepagesCode
protected static function log($message, $path, $pattern = NULL) {
  if (\Drupal::config('securepages.settings')
    ->get('debug')) {
    $options = [
      '@path' => $path,
      '@pattern' => $pattern,
    ];
    debug(t($message, $options));
  }
}