You are here

public function PathPrefixMethod::enterContext in Persistent URL 8

Overrides MethodInterface::enterContext

File

src/Plugin/Purl/Method/PathPrefixMethod.php, line 34

Class

PathPrefixMethod
Plugin annotation @PurlMethod( id="path_prefix" )

Namespace

Drupal\purl\Plugin\Purl\Method

Code

public function enterContext($modifier, $path, array &$options) {
  return '/' . $modifier . $path;
}