public function ResponseSubscriber::forceAbsolutePathsCallback in Advanced CSS/JS Aggregation 8.4
Same name and namespace in other branches
- 8.3 src/EventSubscriber/ResponseSubscriber.php \Drupal\advagg\EventSubscriber\ResponseSubscriber::forceAbsolutePathsCallback()
Callback to replace individual stylesheet links.
Parameters
array $matches: Array from matches from preg_replace_callback.
Return value
string Updated html string.
File
- src/
EventSubscriber/ ResponseSubscriber.php, line 106
Class
- ResponseSubscriber
- Respond to event processes.
Namespace
Drupal\advagg\EventSubscriberCode
public function forceAbsolutePathsCallback(array $matches) {
global $base_root;
return "{$matches[1]}{$base_root}{$matches[2]}";
}