function BrokenInboundPathProcessor::processInbound
Same name in other branches
- 9 core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php \Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor::processInbound()
- 8.9.x core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php \Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor::processInbound()
- 10 core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php \Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor::processInbound()
Overrides InboundPathProcessorInterface::processInbound
File
-
core/
modules/ system/ tests/ modules/ update_script_test/ src/ PathProcessor/ BrokenInboundPathProcessor.php, line 36
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;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.