You are here

public static function EtufHelper::addToLog in Entity Translation Unified Form 8

Log an entry to dblog.

2 calls to EtufHelper::addToLog()
EtufHelper::translateLinkIfNotTranslated in src/EtufHelper.php
_custom_shutdown_menu in ./entity_translation_unified_form.module
Helper function for doing stuff after shutdown function to ensure previous db transaction is committed. Make sure the moderation state is processed correctly. The main point of this function is to make or update an alias for the other language record…

File

src/EtufHelper.php, line 22

Class

EtufHelper
Helper class for the Etuf module.

Namespace

Drupal\entity_translation_unified_form

Code

public static function addToLog($message, $debug = FALSE) {

  // $debug = FALSE;
  if ($debug) {
    \Drupal::logger('etuf')
      ->notice($message);
  }
}