YoastSEO_Vendor\GuzzleHttp\Psr7
Uri::isRelativePathReference() public Yoast 1.0
Whether the URI is a relative-path reference.
A relative reference that does not begin with a slash character is termed a relative-path reference.
{} Это метод класса: Uri{}
Хуков нет.
Возвращает
true/false.
Использование
$result = Uri::isRelativePathReference( \YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri );
- $uri(Uriчислоerface) (обязательный)
Код Uri::isRelativePathReference() Uri::isRelativePathReference Yoast 15.6.2
public static function isRelativePathReference(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri)
{
return $uri->getScheme() === '' && $uri->getAuthority() === '' && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/');
}