AliasManagerDecorator.php in Drupal 8
File
core/modules/path_alias/tests/modules/path_alias_deprecated_test/src/AliasManagerDecorator.php
View source
<?php
namespace Drupal\path_alias_deprecated_test;
use Drupal\Core\Path\AliasManagerInterface;
class AliasManagerDecorator implements AliasManagerInterface {
protected $aliasManager;
public function __construct(AliasManagerInterface $alias_manager) {
$this->aliasManager = $alias_manager;
}
public function getPathByAlias($alias, $langcode = NULL) {
$this->aliasManager
->getPathByAlias($alias, $langcode);
}
public function getAliasByPath($path, $langcode = NULL) {
return $this->aliasManager
->getAliasByPath($path, $langcode);
}
public function cacheClear($source = NULL) {
$this->aliasManager
->cacheClear($source);
}
}