public function TrailingSlashOutboundPathProcessor::processOutbound in Trailing Slash 8
@inheritdoc
Overrides OutboundPathProcessorInterface::processOutbound
File
- src/
PathProcessor/ TrailingSlashOutboundPathProcessor.php, line 62
Class
- TrailingSlashOutboundPathProcessor
- Class TrailingSlashOutboundPathProcessor.
Namespace
Drupal\trailing_slash\PathProcessorCode
public function processOutbound($path, &$options = [], Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL) {
if ($this
->isPathWithTrailingSlash($path, $options, $request, $bubbleable_metadata)) {
TrailingSlashHelper::add($path);
}
return $path;
}