public function PathPrefixMethod::contains in Persistent URL 8
Overrides MethodInterface::contains
File
- src/
Plugin/ Purl/ Method/ PathPrefixMethod.php, line 16
Class
- PathPrefixMethod
- Plugin annotation @PurlMethod( id="path_prefix" )
Namespace
Drupal\purl\Plugin\Purl\MethodCode
public function contains(Request $request, $modifier) {
$uri = $request
->getRequestUri();
return $this
->pathContains($modifier, $uri);
}