WordPress\AiClientDependencies\Psr\Http\Message
UriInterface::withFragment
Return an instance with the specified URI fragment.
This method MUST retain the state of the current instance, and return an instance that contains the specified URI fragment.
Users can provide both encoded and decoded fragment characters. Implementations ensure the correct encoding as outlined in getFragment().
An empty fragment value is equivalent to removing the fragment.
Метод класса: UriInterface{}
Хуков нет.
Возвращает
static. A new instance with the specified fragment.
Использование
$UriInterface = new UriInterface(); $UriInterface->withFragment( $fragment ): UriInterface;
- $fragment(строка) (обязательный)
- The fragment to use with the new instance.
Код UriInterface::withFragment() UriInterface::withFragment WP 7.0.4
public function withFragment(string $fragment): UriInterface;