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\MethodCode
public function enterContext($modifier, $path, array &$options) {
return '/' . $modifier . $path;
}