Same name in other branches
- 5.0.x advagg_mod/src/Asset/AsyncJs.php \Drupal\advagg_mod\Asset\AsyncJs::callback()
- 8.x-3.x advagg_mod/src/Asset/AsyncJs.php \Drupal\advagg_mod\Asset\AsyncJs::callback()
- 8.x-4.x advagg_mod/src/Asset/AsyncJs.php \Drupal\advagg_mod\Asset\AsyncJs::callback()
Callback to replace individual stylesheet links.
Paramètres
array $matches: Array from matches from preg_replace_callback.
Return value
string Updated html string.
Fichier
-
advagg_mod/
src/ Asset/ AsyncJs.php, line 33
Classe
- AsyncJs
- Add async tag to scripts.
Namespace
Drupal\advagg_mod\AssetCode
protected function callback(array $matches) {
return "{$matches[0]} async";
}