public static function UrlValidator::urlIsRelative in Mini site 8
Check if the URL is relative URL.
3 calls to UrlValidator::urlIsRelative()
- PageProcessor::processTagA in src/
PageProcessor.php - Process <a> tag.
- UrlValidator::relativeToRoot in src/
UrlValidator.php - Convert relative to root-level URL with parent prefix support.
- UrlValidatorTest::testUrlIsRelative in tests/
src/ Kernel/ UrlValidatorTest.php - Tests for urlIsRelative().
File
- src/
UrlValidator.php, line 31
Class
- UrlValidator
- Class UrlValidator.
Namespace
Drupal\minisiteCode
public static function urlIsRelative($url) {
return substr($url, 0, 3) == '../';
}