Yoast\WP\SEO\Introductions\Domain

Introductions_Bucket::to_array()publicYoast 1.0

Returns the array representation of the introductions.

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

Хуков нет.

Возвращает

Массив.

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

$Introductions_Bucket = new Introductions_Bucket();
$Introductions_Bucket->to_array();

Код Introductions_Bucket::to_array() Yoast 24.4

public function to_array() {
	// No sorting here because that is done in JS.
	return \array_map(
		static function ( $item ) {
			return $item->to_array();
		},
		$this->introductions
	);
}