class PathProcessorDecode
Same name in other branches
- 9 core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php \Drupal\Core\PathProcessor\PathProcessorDecode
- 8.9.x core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php \Drupal\Core\PathProcessor\PathProcessorDecode
- 10 core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php \Drupal\Core\PathProcessor\PathProcessorDecode
Processes the inbound path by decoding the URL.
Parameters in the URL sometimes represent code-meaningful strings. It is therefore useful to always urldecode() those values so that individual controllers need not concern themselves with it. This is Drupal-specific logic and may not be familiar for developers used to other Symfony-family projects.
@todo Revisit whether or not this logic is appropriate for here or if controllers should be required to implement this logic themselves. If we decide to keep this code, remove this TODO.
Hierarchy
- class \Drupal\Core\PathProcessor\PathProcessorDecode implements \Drupal\Core\PathProcessor\InboundPathProcessorInterface
Expanded class hierarchy of PathProcessorDecode
1 file declares its use of PathProcessorDecode
- PathProcessorTest.php in core/
tests/ Drupal/ Tests/ Core/ PathProcessor/ PathProcessorTest.php
File
-
core/
lib/ Drupal/ Core/ PathProcessor/ PathProcessorDecode.php, line 20
Namespace
Drupal\Core\PathProcessorView source
class PathProcessorDecode implements InboundPathProcessorInterface {
/**
* {@inheritdoc}
*/
public function processInbound($path, Request $request) {
return urldecode($path);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
PathProcessorDecode::processInbound | public | function | Processes the inbound path. | Overrides InboundPathProcessorInterface::processInbound |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.