NullPathProcessorManager.php 686 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Drupal\Core\PathProcessor;
  3. use Drupal\Core\Render\BubbleableMetadata;
  4. use Symfony\Component\HttpFoundation\Request;
  5. /**
  6. * Provides a null implementation of the path processor manager.
  7. *
  8. * This can be used for example in really early installer phases.
  9. */
  10. class NullPathProcessorManager implements InboundPathProcessorInterface, OutboundPathProcessorInterface {
  11. /**
  12. * {@inheritdoc}
  13. */
  14. public function processInbound($path, Request $request) {
  15. return $path;
  16. }
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function processOutbound($path, &$options = [], Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL) {
  21. return $path;
  22. }
  23. }