Yoast\WP\SEO\Generated
Cached_Container::getMainImageService
Gets the public 'Yoast\WP\SEO\Generators\Schema\Main_Image' shared autowired service.
Метод класса: Cached_Container{}
Хуков нет.
Возвращает
\Yoast\WP\SEO\Generators\Schema\Main_Image
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->getMainImageService();
Код Cached_Container::getMainImageService() Cached Container::getMainImageService Yoast 25.3
protected function getMainImageService() { return $this->services['Yoast\\WP\\SEO\\Generators\\Schema\\Main_Image'] = new \Yoast\WP\SEO\Generators\Schema\Main_Image(); }