Yoast\WP\SEO\Generators

Schema_Generator::finalize_graph()protectedYoast 1.0

Finalizes the schema graph after all filtering is done.

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

Хуков нет.

Возвращает

Массив. The schema graph.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->finalize_graph( $graph, $context );
$graph(массив) (обязательный)
The current schema graph.
$context(Meta_Tags_Context) (обязательный)
The meta tags context.

Код Schema_Generator::finalize_graph() Yoast 22.3

protected function finalize_graph( $graph, $context ) {
	$graph = $this->remove_empty_breadcrumb( $graph, $context );

	return $graph;
}