You are here

private function SubdomainMethod::hostContainsModifier in Persistent URL 8

3 calls to SubdomainMethod::hostContainsModifier()
SubdomainMethod::contains in src/Plugin/Purl/Method/SubdomainMethod.php
SubdomainMethod::enterContext in src/Plugin/Purl/Method/SubdomainMethod.php
SubdomainMethod::exitContext in src/Plugin/Purl/Method/SubdomainMethod.php

File

src/Plugin/Purl/Method/SubdomainMethod.php, line 37

Class

SubdomainMethod
Plugin annotation @PurlMethod( id="subdomain", name="Subdomain" )

Namespace

Drupal\purl\Plugin\Purl\Method

Code

private function hostContainsModifier($modifier, $host) {
  return strpos($host, $modifier . '.') === 0;
}