YoastSEO_Vendor\GuzzleHttp
UriTemplate::expand() public Yoast 1.0
{} Это метод класса: UriTemplate{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$UriTemplate = new UriTemplate(); $UriTemplate->expand( $template, $variables );
Код UriTemplate::expand() UriTemplate::expand Yoast 15.6.2
public function expand($template, array $variables)
{
if (\false === \strpos($template, '{')) {
return $template;
}
$this->template = $template;
$this->variables = $variables;
return \preg_replace_callback('/\\{([^\\}]+)\\}/', [$this, 'expandMatch'], $this->template);
}