You are here

class ModuleUtils in Node expire 7.2

ModuleUtils class.

Hierarchy

Expanded class hierarchy of ModuleUtils

1 file declares its use of ModuleUtils
FormHookHelper.php in src/Module/Hook/FormHookHelper.php
FormHookHelper class.

File

src/Module/Utils/ModuleUtils.php, line 15
ModuleUtils class.

Namespace

Drupal\node_expire\Module\Utils
View source
class ModuleUtils {

  /**
   * Cleans up redundant plain variables.
   */
  public static function doVariablesCleanup() {

    // TODO: Optimize and find out source of node_expire_page	N; .
    // TODO: Add some common name like node_expire_type_cfg_
    // for easy cleanup.
    // Delete node type related variables.
    CommonUtils::doVariablesCleanupByTemplate('node_expire_type_cfg_%');
  }

  /**
   * Utility function to display debug info.
   *
   * Display debug info and write it into log.
   *
   * @param object $data
   *   Data to display.
   */
  public static function debug($data = array()) {
    drupal_set_message(filter_xss_admin('<pre>' . print_r($data, TRUE) . '</pre>'));
    watchdog('node_expire', '<pre>' . print_r($data, TRUE) . '</pre>');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ModuleUtils::debug public static function Utility function to display debug info.
ModuleUtils::doVariablesCleanup public static function Cleans up redundant plain variables.