You are here

private function PathPrefixMethod::pathContains in Persistent URL 8

2 calls to PathPrefixMethod::pathContains()
PathPrefixMethod::contains in src/Plugin/Purl/Method/PathPrefixMethod.php
PathPrefixMethod::exitContext in src/Plugin/Purl/Method/PathPrefixMethod.php

File

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

Class

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

Namespace

Drupal\purl\Plugin\Purl\Method

Code

private function pathContains($modifier, $path) {
  return strpos($path, '/' . $modifier) === 0;
}