Yoast\WP\SEO\Abilities\Domain
Score_Result::to_array
Serializes the score result to an array for ability output.
Метод класса: Score_Result{}
Хуков нет.
Возвращает
array<string, string>. The serialized score result.
Использование
$Score_Result = new Score_Result(); $Score_Result->to_array(): array;
Код Score_Result::to_array() Score Result::to array Yoast 28.9
public function to_array(): array {
return [
'title' => $this->title,
'score' => $this->score,
'label' => $this->label,
];
}