Yoast\WP\SEO\Generated

Cached_Container::getIndexablePostTypeArchiveBuilderServiceprotectedYoast 1.0

Gets the public 'Yoast\WP\SEO\Builders\Indexable_Post_Type_Archive_Builder' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Builders\Indexable_Post_Type_Archive_Builder.

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

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

Код Cached_Container::getIndexablePostTypeArchiveBuilderService() Yoast 26.9

protected function getIndexablePostTypeArchiveBuilderService()
{
    $a = ($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Helper'] ?? $this->getPostHelperService());

    if (isset($this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Post_Type_Archive_Builder'])) {
        return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Post_Type_Archive_Builder'];
    }

    return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Post_Type_Archive_Builder'] = new \Yoast\WP\SEO\Builders\Indexable_Post_Type_Archive_Builder(($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())), ($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] ?? ($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] = new \Yoast\WP\SEO\Values\Indexables\Indexable_Builder_Versions())), $a, ($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper'] ?? $this->getPostTypeHelperService()));
}