Same name in other branches
  1. 5.0.x advagg_mod/src/Asset/RemoveConsoleLog.php \Drupal\advagg_mod\Asset\RemoveConsoleLog::removeCallback()
  2. 6.0.x advagg_mod/src/Asset/RemoveConsoleLog.php \Drupal\advagg_mod\Asset\RemoveConsoleLog::removeCallback()
  3. 8.x-4.x advagg_mod/src/Asset/RemoveConsoleLog.php \Drupal\advagg_mod\Asset\RemoveConsoleLog::removeCallback()

Remove the console.log() call.

Paramètres

array $matches: Array of matches from preg_replace_callback().

Return value

string Replaced string.

Fichier

advagg_mod/src/Asset/RemoveConsoleLog.php, line 33

Classe

RemoveConsoleLog
Remove console.log() calls from JavaScript Files.

Namespace

Drupal\advagg_mod\Asset

Code

protected function removeCallback(array $matches) {
    return '';
}