Yoast\WP\SEO\Generated

Cached_Container::getIndexableHelperServiceprotectedYoast 1.0

Gets the public 'Yoast\WP\SEO\Helpers\Indexable_Helper' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Helpers\Indexable_Helper.

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

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

Код Cached_Container::getIndexableHelperService() Yoast 27.6

protected function getIndexableHelperService()
{
    $a = ($this->services['Yoast\\WP\\SEO\\Helpers\\Indexing_Helper'] ?? $this->getIndexingHelperService());

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

    $this->services['Yoast\\WP\\SEO\\Helpers\\Indexable_Helper'] = $instance = new \Yoast\WP\SEO\Helpers\Indexable_Helper(($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\\Helpers\\Environment_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Environment_Helper'] = new \Yoast\WP\SEO\Helpers\Environment_Helper())), $a);

    $instance->set_indexable_repository(($this->services['Yoast\\WP\\SEO\\Repositories\\Indexable_Repository'] ?? $this->getIndexableRepositoryService()));

    return $instance;
}