function BrokenInboundPathProcessor::processInbound

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php \Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor::processInbound()
  2. 10 core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php \Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor::processInbound()
  3. 8.9.x core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php \Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor::processInbound()

File

core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php, line 34

Class

BrokenInboundPathProcessor
Example path processor which breaks on inbound.

Namespace

Drupal\update_script_test\PathProcessor

Code

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.