You are here

protected function RemoveConsoleLog::removeCallback in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.3 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\Asset

Code

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