You are here

function node_expire_debug in Node expire 8

Same name and namespace in other branches
  1. 7 node_expire.module \node_expire_debug()

Utility to display debug info.

Display debug info and write it into log.

Parameters

object $data: Data to display.

File

./node_expire.module, line 356
Set a timer into your content, allowing you to perform customized actions.

Code

function node_expire_debug($data = array()) {
  drupal_set_message(filter_xss_admin('<pre>' . print_r($data, TRUE) . '</pre>'));
  \Drupal::logger('node_expire')
    ->notice('<pre>' . print_r($data, TRUE) . '</pre>', []);
}