# wordpress-seo/27.7/src/ai/content-planner/infrastructure/endpoints/get-outline-endpoint.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.7/code/src/ai/content-planner/infrastructure/endpoints/get-outline-endpoint.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.7/raw/src/ai/content-planner/infrastructure/endpoints/get-outline-endpoint.php
- Modified: 2026-04-28T14:11:22+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/27.7/code/src/ai/content-planner/infrastructure/endpoints/get-outline-endpoint.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\AI\Content_Planner\Infrastructure\Endpoints;

use Yoast\WP\SEO\AI\Content_Planner\User_Interface\Get_Outline_Route;

/**
 * Represents the content planner endpoint to retrieve the outline.
 */
class Get_Outline_Endpoint implements Content_Planner_Endpoint_Interface {

	/**
	 * Gets the name.
	 *
	 * @return string
	 */
	public function get_name(): string {
		return 'getOutline';
	}

	/**
	 * Gets the namespace.
	 *
	 * @return string
	 */
	public function get_namespace(): string {
		return Get_Outline_Route::ROUTE_NAMESPACE;
	}

	/**
	 * Gets the route.
	 *
	 * @return string
	 */
	public function get_route(): string {
		return Get_Outline_Route::ROUTE_PREFIX;
	}

	/**
	 * Gets the URL.
	 *
	 * @return string
	 */
	public function get_url(): string {
		return \rest_url( $this->get_namespace() . $this->get_route() );
	}
}

```
