# wordpress-seo/trunk/src/editors/domain/seo/seo-plugin-data-interface.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/editors/domain/seo/seo-plugin-data-interface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/trunk/raw/src/editors/domain/seo/seo-plugin-data-interface.php
- Modified: 2026-01-20T12:23:48+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/trunk/code/src/editors/domain/seo/seo-plugin-data-interface.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace Yoast\WP\SEO\Editors\Domain\Seo;

/**
 * This class describes the SEO data interface.
 */
interface Seo_Plugin_Data_Interface {

	/**
	 * Returns the data as an array format.
	 *
	 * @return array<string>
	 */
	public function to_array(): array;

	/**
	 * Returns the data as an array format meant for legacy use.
	 *
	 * @return array<string>
	 */
	public function to_legacy_array(): array;
}

```
