# wordpress-seo/28.6/src/schema-aggregator/domain/enhancement/schema-enhancement-interface.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.6. 20 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.6/code/src/schema-aggregator/domain/enhancement/schema-enhancement-interface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.6/raw/src/schema-aggregator/domain/enhancement/schema-enhancement-interface.php
- Modified: 2026-02-17T12:17:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/28.6/code/src/schema-aggregator/domain/enhancement/schema-enhancement-interface.php#L10-L20`.

```php
<?php
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Schema_Aggregator\Domain\Enhancement;

use Yoast\WP\SEO\Models\Indexable;
use Yoast\WP\SEO\Schema_Aggregator\Domain\Schema_Piece;

interface Schema_Enhancement_Interface {

	/**
	 * Enhances the given schema piece.
	 *
	 * @param Schema_Piece $schema_piece The schema piece to enhance.
	 * @param Indexable    $indexable    The indexable object that is the source of the schema piece.
	 *
	 * @return Schema_Piece The enhanced schema piece.
	 */
	public function enhance( Schema_Piece $schema_piece, Indexable $indexable ): Schema_Piece;
}

```
