WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

YoastSEO_Vendor\GuzzleHttp\Psr7

UriNormalizer::isEquivalent() public Yoast 1.0

Whether two URIs can be considered equivalent.

Both URIs are normalized automatically before comparison with the given $normalizations bitmask. The method also accepts relative URI references and returns true when they are equivalent. This of course assumes they will be resolved against the same base URI. If this is not the case, determination of equivalence or difference of relative references does not mean anything.

{} Это метод класса: UriNormalizer{}

Хуков нет.

Возвращает

true/false.

Использование

$result = UriNormalizer::isEquivalent( \YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri1, \YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri2, $normalizations );
$uri1(Uriчислоerface) (обязательный)
An URI to compare
$uri2(Uriчислоerface) (обязательный)
An URI to compare
$normalizations(число)
A bitmask of normalizations to apply, see constants
По умолчанию: self::PRESERVING_NORMALIZATIONS

Код UriNormalizer::isEquivalent() Yoast 15.6.2

<?php
public static function isEquivalent(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri1, \YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS)
{
    return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations);
}