public function BrokenInboundPathProcessor::processInbound in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php \Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor::processInbound()
Processes the inbound path.
Parameters
string $path: The path to process, with a leading slash.
\Symfony\Component\HttpFoundation\Request $request: The HttpRequest object representing the current request.
Return value
string The processed path.
Overrides InboundPathProcessorInterface::processInbound
File
- core/
modules/ system/ tests/ modules/ update_script_test/ src/ PathProcessor/ BrokenInboundPathProcessor.php, line 39 - Contains \Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor.
Class
- BrokenInboundPathProcessor
- Example path processor which breaks on inbound.
Namespace
Drupal\update_script_test\PathProcessorCode
public function processInbound($path, Request $request) {
if ($this->state
->get('update_script_test_broken_inbound', FALSE)) {
throw new \RuntimeException();
}
else {
return $path;
}
}