# wordpress-seo/27.7/src/dashboard/infrastructure/endpoints/site-kit-consent-management-endpoint.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.7/code/src/dashboard/infrastructure/endpoints/site-kit-consent-management-endpoint.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.7/raw/src/dashboard/infrastructure/endpoints/site-kit-consent-management-endpoint.php
- Modified: 2026-03-31T11:40:40+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/dashboard/infrastructure/endpoints/site-kit-consent-management-endpoint.php#L10-L20`.

```php
<?php

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

use Exception;
use Yoast\WP\SEO\Dashboard\User_Interface\Configuration\Site_Kit_Consent_Management_Route;

/**
 * Represents the Site Kit consent management endpoint.
 */
class Site_Kit_Consent_Management_Endpoint implements Dashboard_Endpoint_Interface {

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

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

	/**
	 * Gets the route.
	 *
	 * @return string
	 *
	 * @throws Exception If the route prefix is not overwritten this throws.
	 */
	public function get_route(): string {
		return Site_Kit_Consent_Management_Route::ROUTE_PREFIX;
	}

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

```
