Yoast\WP\SEO\Generated

Cached_Container::getOptInRouteServiceprotectedYoast 1.0

Gets the public 'Yoast\WP\SEO\General\User_Interface\Opt_In_Route' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\General\User_Interface\Opt_In_Route.

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

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

Код Cached_Container::getOptInRouteService() Yoast 26.9

protected function getOptInRouteService()
{
    return $this->services['Yoast\\WP\\SEO\\General\\User_Interface\\Opt_In_Route'] = new \Yoast\WP\SEO\General\User_Interface\Opt_In_Route(($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\\Capability_Helper'] ?? ($this->services['Yoast\\WP\\SEO\\Helpers\\Capability_Helper'] = new \Yoast\WP\SEO\Helpers\Capability_Helper())));
}