Yoast\WP\SEO\Generated

Cached_Container::getImageHelper4Service()protectedYoast 1.0

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

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Helpers\Twitter\Image_Helper.

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

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

Код Cached_Container::getImageHelper4Service() Yoast 19.11

protected function getImageHelper4Service()
{
    $a = ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Image_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Image_Helper'] : $this->getImageHelperService()) && false ?: '_'};

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

    return $this->services['Yoast\\WP\\SEO\\Helpers\\Twitter\\Image_Helper'] = new \Yoast\WP\SEO\Helpers\Twitter\Image_Helper($a);
}