function BrokenInboundPathProcessor::processInbound

Same name in other branches
  1. 9 core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php \Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor::processInbound()
  2. 8.9.x core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php \Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor::processInbound()
  3. 11.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.