InboundPathProcessorInterface.php 576 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php

namespace Drupal\Core\PathProcessor;

use Symfony\Component\HttpFoundation\Request;

/**
 * Defines an interface for classes that process the inbound path.
 */
interface InboundPathProcessorInterface {

  /**
   * Processes the inbound path.
   *
   * @param string $path
16
   *   The path to process, with a leading slash.
17 18
   * @param \Symfony\Component\HttpFoundation\Request $request
   *   The HttpRequest object representing the current request.
19 20 21
   *
   * @return string
   *   The processed path.
22 23 24 25
   */
  public function processInbound($path, Request $request);

}