Same name in other branches
- 5.0.x advagg_mod/src/Asset/RemoveConsoleLog.php \Drupal\advagg_mod\Asset\RemoveConsoleLog::removeCallback()
- 6.0.x advagg_mod/src/Asset/RemoveConsoleLog.php \Drupal\advagg_mod\Asset\RemoveConsoleLog::removeCallback()
- 8.x-4.x advagg_mod/src/Asset/RemoveConsoleLog.php \Drupal\advagg_mod\Asset\RemoveConsoleLog::removeCallback()
Remove the console.log() call.
Parameters
array $matches: Array of matches from preg_replace_callback().
Return value
string Replaced string.
File
-
advagg_mod/
src/ Asset/ RemoveConsoleLog.php, line 33
Class
- RemoveConsoleLog
- Remove console.log() calls from JavaScript Files.
Namespace
Drupal\advagg_mod\AssetCode
protected function removeCallback(array $matches) {
return '';
}