Yoast\WP\SEO\Schema_Aggregator\Domain

Schema_Piece_Collection::to_array │ public │ Yoast 1.0

Gets all schema pieces as an array.

Метод класса: Schema_Piece_Collection{}

Хуков нет.

Возвращает

array<Schema_Piece>. The schema pieces.

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

$Schema_Piece_Collection = new Schema_Piece_Collection();
$Schema_Piece_Collection->to_array(): array;

Код Schema_Piece_Collection::to_array() Yoast 28.9

public function to_array(): array {
	return $this->pieces;
}