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

YoastSEO_Vendor\Psr\Http\Message

UriInterface::withPath() public Yoast 1.0

Return an instance with the specified path.

This method MUST retain the state of the current instance, and return an instance that contains the specified path.

The path can either be empty or absolute (starting with a slash) or rootless (not starting with a slash). Implementations MUST support all three syntaxes.

If the path is intended to be domain-relative rather than path relative then it must begin with a slash ("/"). Paths not starting with a slash ("/") are assumed to be relative to some base path known to the application or consumer.

Users can provide both encoded and decoded path characters. Implementations ensure the correct encoding as outlined in getPath().

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

Хуков нет.

Возвращает

static. A new instance with the specified path.

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

$UriInterface = new UriInterface();
$UriInterface->withPath( $path );
$path(строка) (обязательный)
The path to use with the new instance.

Код UriInterface::withPath() Yoast 15.3

<?php
public function withPath($path);