Yoast\WP\SEO\Dashboard\Domain\Score_Results

Score_Result::to_array()publicYoast 1.0

Return this object represented by a key value array.

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

Хуков нет.

Возвращает

Массив<Строку,Массив<Массив<Строку,. string|int|array<string, string>>>|float|bool> Returns the name and if the feature is enabled.

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

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

Код Score_Result::to_array() Yoast 24.4

public function to_array(): array {
	return [
		'scores'    => $this->current_scores_list->to_array(),
		'queryTime' => $this->query_time,
		'cacheUsed' => $this->is_cached_used,
	];
}