Yoast\WP\SEO\Schema_Aggregator\Infrastructure\Elements_Context_Map

Elements_Context_Map_Repository_Interface{}interfaceYoast 1.0

Interface for the elements-context map repository.

Хуков нет.

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

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

Методы

  1. public get_map()
  2. public save_map( array $map )

Код Elements_Context_Map_Repository_Interface{} Yoast 28.3

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;
}