WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Generated

Cached_Container::getSchemaBlocksService() protected Yoast 1.0

Gets the public 'Yoast\WP\SEO\Integrations\Schema_Blocks' shared autowired service.

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

Хуков нет.

Возвращает

\Yoast\WP\SEO\Integrations\Schema_Blocks.

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

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

Код Cached_Container::getSchemaBlocksService() Yoast 15.6.2

<?php
protected function getSchemaBlocksService()
{
    $this->services['Yoast\\WP\\SEO\\Integrations\\Schema_Blocks'] = $instance = new \Yoast\WP\SEO\Integrations\Schema_Blocks(${($_ = isset($this->services['WPSEO_Admin_Asset_Manager']) ? $this->services['WPSEO_Admin_Asset_Manager'] : $this->getWPSEOAdminAssetManagerService()) && false ?: '_'});

    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/address.block.php');
    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/address.schema.php');
    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/image.schema.php');
    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/ingredients.block.php');
    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/ingredients.schema.php');
    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/recipe.block.php');
    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/recipe.schema.php');
    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/step.block.php');
    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/step.schema.php');
    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/steps.block.php');
    $instance->register_template('/var/jenkins/workspace/Plugin_Release/wordpress-seo/.repos/wordpress-seo/src/schema-templates/steps.schema.php');

    return $instance;
}