Yoast\WP\SEO\Generated

Cached_Container::getIndexableSearchResultPagePresentationServiceprotectedYoast 1.0

Gets the public 'Yoast\WP\SEO\Presentations\Indexable_Search_Result_Page_Presentation' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Presentations\Indexable_Search_Result_Page_Presentation.

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

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

Код Cached_Container::getIndexableSearchResultPagePresentationService() Yoast 26.9

protected function getIndexableSearchResultPagePresentationService()
{
    $this->services['Yoast\\WP\\SEO\\Presentations\\Indexable_Search_Result_Page_Presentation'] = $instance = new \Yoast\WP\SEO\Presentations\Indexable_Search_Result_Page_Presentation();

    $instance->set_generators(($this->services['Yoast\\WP\\SEO\\Generators\\Schema_Generator'] ?? $this->getSchemaGeneratorService()), ($this->services['Yoast\\WP\\SEO\\Generators\\Open_Graph_Locale_Generator'] ?? ($this->services['Yoast\\WP\\SEO\\Generators\\Open_Graph_Locale_Generator'] = new \Yoast\WP\SEO\Generators\Open_Graph_Locale_Generator())), ($this->services['Yoast\\WP\\SEO\\Generators\\Open_Graph_Image_Generator'] ?? $this->getOpenGraphImageGeneratorService()), ($this->services['Yoast\\WP\\SEO\\Generators\\Twitter_Image_Generator'] ?? $this->getTwitterImageGeneratorService()), ($this->services['Yoast\\WP\\SEO\\Generators\\Breadcrumbs_Generator'] ?? $this->getBreadcrumbsGeneratorService()));
    $instance->set_helpers(($this->services['Yoast\\WP\\SEO\\Helpers\\Image_Helper'] ?? $this->getImageHelperService()), ($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\\Current_Page_Helper'] ?? $this->getCurrentPageHelperService()), ($this->services['Yoast\\WP\\SEO\\Helpers\\Url_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Url_Helper'] = new \Yoast\WP\SEO\Helpers\Url_Helper())), ($this->services['Yoast\\WP\\SEO\\Helpers\\User_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\User_Helper'] = new \Yoast\WP\SEO\Helpers\User_Helper())), ($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\\Open_Graph\\Values_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Open_Graph\\Values_Helper'] = new \Yoast\WP\SEO\Helpers\Open_Graph\Values_Helper())));

    return $instance;
}