Yoast\WP\SEO\Schema_Aggregator\Infrastructure\Elements_Context_Map
Elements_Context_Map_Repository_Interface{}
Interface for the elements-context map repository.
Хуков нет.
Использование
$Elements_Context_Map_Repository_Interface = new Elements_Context_Map_Repository_Interface(); // use class methods
Методы
- public get_map()
- public save_map( array $map )
Код Elements_Context_Map_Repository_Interface{} 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;
}