Yoast\WP\SEO\Generated

Cached_Container::getReplaceVarsHelperServiceprotectedYoast 1.0

Gets the public 'Yoast\WP\SEO\Helpers\Schema\Replace_Vars_Helper' shared autowired service.

Метод класса: Cached_Container{}

Хуков нет.

Возвращает

\Yoast\WP\SEO\Helpers\Schema\Replace_Vars_Helper.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->getReplaceVarsHelperService();

Код Cached_Container::getReplaceVarsHelperService() Yoast 28.1

protected function getReplaceVarsHelperService()
{
    return $this->services['Yoast\\WP\\SEO\\Helpers\\Schema\\Replace_Vars_Helper'] = new \Yoast\WP\SEO\Helpers\Schema\Replace_Vars_Helper(($this->services['WPSEO_Replace_Vars'] ?? $this->getWPSEOReplaceVarsService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Schema\\ID_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Schema\\ID_Helper'] = new \Yoast\WP\SEO\Helpers\Schema\ID_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Date_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Date_Helper'] = new \Yoast\WP\SEO\Helpers\Date_Helper())));
}