Yoast\WP\SEO\Generated

Cached_Container::getPrimaryTermRepositoryService()protectedYoast 1.0

Gets the public 'Yoast\WP\SEO\Repositories\Primary_Term_Repository' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Repositories\Primary_Term_Repository.

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

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

Код Cached_Container::getPrimaryTermRepositoryService() Yoast 22.4

protected function getPrimaryTermRepositoryService()
{
    return $this->services['Yoast\\WP\\SEO\\Repositories\\Primary_Term_Repository'] = new \Yoast\WP\SEO\Repositories\Primary_Term_Repository();
}