Yoast\WP\SEO\Generated
Cached_Container::getPostHelperService
Gets the public 'Yoast\WP\SEO\Helpers\Post_Helper' shared autowired service.
Метод класса: Cached_Container{}
Хуков нет.
Возвращает
\Yoast\WP\SEO\Helpers\Post_Helper.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->getPostHelperService();
Код Cached_Container::getPostHelperService() Cached Container::getPostHelperService Yoast 26.9
protected function getPostHelperService()
{
$this->services['Yoast\\WP\\SEO\\Helpers\\Post_Helper'] = $instance = new \Yoast\WP\SEO\Helpers\Post_Helper(($this->services['Yoast\\WP\\SEO\\Helpers\\String_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\String_Helper'] = new \Yoast\WP\SEO\Helpers\String_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper'] ?? $this->getPostTypeHelperService()));
$instance->set_indexable_repository(($this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Repository'] ?? $this->getIndexableRepositoryService()));
return $instance;
}