Same name and namespace in other branches
- 6.0.x src/EventSubscriber/ResponseSubscriber.php \Drupal\advagg\EventSubscriber\ResponseSubscriber::forceAbsolutePathsCallback()
- 8.x-3.x src/EventSubscriber/ResponseSubscriber.php \Drupal\advagg\EventSubscriber\ResponseSubscriber::forceAbsolutePathsCallback()
- 8.x-4.x src/EventSubscriber/ResponseSubscriber.php \Drupal\advagg\EventSubscriber\ResponseSubscriber::forceAbsolutePathsCallback()
Callback to replace individual stylesheet links.
Paramètres
array $matches: Array from matches from preg_replace_callback.
Valeur de retour
string Updated html string.
Fichier
-
src/
EventSubscriber/ ResponseSubscriber.php, line 106
Classe
- ResponseSubscriber
- Respond to event processes.
Namespace
Drupal\advagg\EventSubscriberCode
public function forceAbsolutePathsCallback(array $matches) {
global $base_root;
return "{$matches[1]}{$base_root}{$matches[2]}";
}