Yoast\WP\SEO\Schema_Aggregator\Infrastructure\Indexable_Repository

Indexable_Repository_Interface{}interfaceYoast 1.0

Interface for the Indexable repository.

Хуков нет.

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

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

Методы

  1. public get( int $page, int $page_size, string $post_type )

Код Indexable_Repository_Interface{} Yoast 28.3

interface Indexable_Repository_Interface {

	/**
	 * Gets the indexables to be aggregated.
	 *
	 * @param int    $page      The page number (1-based).
	 * @param int    $page_size The number of items per page.
	 * @param string $post_type The post type to filter by.
	 *
	 * @return array<Indexable> The indexables.
	 */
	public function get( int $page, int $page_size, string $post_type ): array;
}