Yoast\WP\SEO\Generated
Cached_Container::getIndexableHierarchyBuilderService
Gets the public 'Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder' shared autowired service.
Метод класса: Cached_Container{}
Хуков нет.
Возвращает
\Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->getIndexableHierarchyBuilderService();
Код Cached_Container::getIndexableHierarchyBuilderService() Cached Container::getIndexableHierarchyBuilderService Yoast 28.5
protected function getIndexableHierarchyBuilderService()
{
$a = ($this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Hierarchy_Repository'] ?? $this->getIndexableHierarchyRepositoryService());
if (isset($this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Hierarchy_Builder'])) {
return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Hierarchy_Builder'];
}
$b = ($this->services['Yoast\\WP\\SEO\\Helpers\\Indexable_Helper'] ?? $this->getIndexableHelperService());
if (isset($this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Hierarchy_Builder'])) {
return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Hierarchy_Builder'];
}
$c = ($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Helper'] ?? $this->getPostHelperService());
if (isset($this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Hierarchy_Builder'])) {
return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Hierarchy_Builder'];
}
$this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Hierarchy_Builder'] = $instance = new \Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder($a, ($this->services['Yoast\\WP\\SEO\\Repositories\\Primary_Term_Repository'] ?? ($this->services['Yoast\\WP\\SEO\\Repositories\\Primary_Term_Repository'] = new \Yoast\WP\SEO\Repositories\Primary_Term_Repository())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())), $c, $b);
$instance->set_indexable_repository(($this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Repository'] ?? $this->getIndexableRepositoryService()));
return $instance;
}