public static function UrlValidator::urlIsIndex in Mini site 8
Check if the URL points to an index file.
2 calls to UrlValidator::urlIsIndex()
- Asset::isIndex in src/
Asset.php - Check if the current asset is index entry point.
- UrlValidatorTest::testUrlIsIndex in tests/
src/ Kernel/ UrlValidatorTest.php - Tests for urlIsIndex().
File
- src/
UrlValidator.php, line 38
Class
- UrlValidator
- Class UrlValidator.
Namespace
Drupal\minisiteCode
public static function urlIsIndex($url, $index_file = 'index.html') {
return basename($url) == $index_file;
}