WordPress at Your Fingertips
function is not described

render_block_core_query_title() WP 1.0

Renders the core/query-title block on the server. For now it only supports Archive title, using queried object information

No Hooks.

Return

String. Returns the query title based on the queried object.

Usage

render_block_core_query_title( $attributes );
$attributes(array) (required)
Block attributes.

Code of render_block_core_query_title() WP 5.8.2

function render_block_core_query_title( $attributes ) {
	$type       = isset( $attributes['type'] ) ? $attributes['type'] : null;
	$is_archive = is_archive();
	if ( ! $type || ( 'archive' === $type && ! $is_archive ) ) {
		return '';
	}
	$title = '';
	if ( $is_archive ) {
		$title = get_the_archive_title();
	}
	$tag_name           = isset( $attributes['level'] ) ? 'h' . (int) $attributes['level'] : 'h1';
	$align_class_name   = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}";
	$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );
	return sprintf(
		'<%1$s %2$s>%3$s</%1$s>',
		$tag_name,
		$wrapper_attributes,
		$title
	);
}