# wordpress-seo/28.1/src/schema-aggregator/infrastructure/elements-context-map/elements-context-map-repository-interface.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.1/code/src/schema-aggregator/infrastructure/elements-context-map/elements-context-map-repository-interface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.1/raw/src/schema-aggregator/infrastructure/elements-context-map/elements-context-map-repository-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.1/code/src/schema-aggregator/infrastructure/elements-context-map/elements-context-map-repository-interface.php#L10-L20`.

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

/**
 * Interface for the elements-context map repository.
 */
interface Elements_Context_Map_Repository_Interface {

	/**
	 * Retrieves the elements-context map.
	 *
	 * @return array<array<string, string>> The elements context map.
	 */
	public function get_map(): array;

	/**
	 * Saves the elements-context map.
	 *
	 * @param array<array<string, string>> $map The elements-context map to be saved.
	 *
	 * @return void
	 */
	public function save_map( array $map ): void;
}

```
