Processes the inbound path using path alias lookups.
Expanded class hierarchy of PathProcessorAlias
class PathProcessorAlias implements InboundPathProcessorInterface, OutboundPathProcessorInterface {
/**
* An alias manager for looking up the system path.
*
* @var \Drupal\Core\Path\AliasManagerInterface
*/
protected $aliasManager;
/**
* Constructs a PathProcessorAlias object.
*
* @param \Drupal\Core\Path\AliasManagerInterface $alias_manager
* An alias manager for looking up the system path.
*/
public function __construct(AliasManagerInterface $alias_manager) {
$this->aliasManager = $alias_manager;
}
/**
* Implements Drupal\Core\PathProcessor\InboundPathProcessorInterface::processInbound().
*/
public function processInbound($path, Request $request) {
$path = $this->aliasManager
->getSystemPath($path);
return $path;
}
/**
* Implements Drupal\Core\PathProcessor\OutboundPathProcessorInterface::processOutbound().
*/
public function processOutbound($path, &$options = array(), Request $request = NULL) {
$langcode = isset($options['language']) ? $options['language']->langcode : NULL;
$path = $this->aliasManager
->getPathAlias($path, $langcode);
return $path;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PathProcessorAlias:: |
protected | property | An alias manager for looking up the system path. | |
PathProcessorAlias:: |
public | function |
Implements Drupal\Core\PathProcessor\InboundPathProcessorInterface::processInbound(). Overrides InboundPathProcessorInterface:: |
|
PathProcessorAlias:: |
public | function |
Implements Drupal\Core\PathProcessor\OutboundPathProcessorInterface::processOutbound(). Overrides OutboundPathProcessorInterface:: |
|
PathProcessorAlias:: |
public | function | Constructs a PathProcessorAlias object. |