Yoast\WP\SEO\Generated

Cached_Container::getIndexableAncestorWatcherService │ protected │ Yoast 1.0

Gets the public 'Yoast\WP\SEO\Integrations\Watchers\Indexable_Ancestor_Watcher' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Integrations\Watchers\Indexable_Ancestor_Watcher.

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

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

Код Cached_Container::getIndexableAncestorWatcherService() Yoast 28.9

protected function getIndexableAncestorWatcherService()
{
    return $this->services['Yoast\\WP\\SEO\\Integrations\\Watchers\\Indexable_Ancestor_Watcher'] = new \Yoast\WP\SEO\Integrations\Watchers\Indexable_Ancestor_Watcher(($this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Repository'] ?? $this->getIndexableRepositoryService()), ($this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Hierarchy_Builder'] ?? $this->getIndexableHierarchyBuilderService()), ($this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Hierarchy_Repository'] ?? $this->getIndexableHierarchyRepositoryService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Indexable_Helper'] ?? $this->getIndexableHelperService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Permalink_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Permalink_Helper'] = new \Yoast\WP\SEO\Helpers\Permalink_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper'] ?? $this->getPostTypeHelperService()));
}