Yoast\WP\SEO\Generated

Cached_Container::getPrimaryTermHelperService()protectedYoast 1.0

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

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Helpers\Primary_Term_Helper.

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

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

Код Cached_Container::getPrimaryTermHelperService() Yoast 22.3

protected function getPrimaryTermHelperService()
{
    return $this->services['Yoast\\WP\\SEO\\Helpers\\Primary_Term_Helper'] = new \Yoast\WP\SEO\Helpers\Primary_Term_Helper();
}