Yoast\WP\SEO\Bulk_Editor\Domain\Updates
Update_Result_Collection::to_array
Parses the collection to the expected key value representation.
Метод класса: Update_Result_Collection{}
Хуков нет.
Возвращает
array<string,. array<array<string, int|bool|string>>> The collection presented as the expected key value representation.
Использование
$Update_Result_Collection = new Update_Result_Collection(); $Update_Result_Collection->to_array(): array;
Код Update_Result_Collection::to_array() Update Result Collection::to array Yoast 28.9
public function to_array(): array {
$results = [];
foreach ( $this->results as $result ) {
$results[] = $result->to_array();
}
return [ 'results' => $results ];
}