Yoast\WP\SEO\Editors\Domain\Analysis_Features

Analysis_Feature_Interface{}Yoast 1.0

This interface describes an Analysis feature implementation.

Хуков нет.

Использование

$Analysis_Feature_Interface = new Analysis_Feature_Interface();
// use class methods

Методы

  1. public get_legacy_key()
  2. public get_name()
  3. public is_enabled()

Код Analysis_Feature_Interface{} Yoast 24.4

interface Analysis_Feature_Interface {

	/**
	 * Returns If the analysis is enabled.
	 *
	 * @return bool
	 */
	public function is_enabled(): bool;

	/**
	 * Returns the name of the object.
	 *
	 * @return string
	 */
	public function get_name(): string;

	/**
	 * Returns the legacy key used in the front-end to determine if the feature is enabled.
	 *
	 * @return string
	 */
	public function get_legacy_key(): string;
}