Yoast\WP\SEO\AI\Content_Planner\Domain
Section_List::to_array
Returns this object in array format.
Метод класса: Section_List{}
Хуков нет.
Возвращает
Массив<Строку,. array<array<string, string|array<string>|null>>> The sections as an array.
Использование
$Section_List = new Section_List(); $Section_List->to_array(): array;
Код Section_List::to_array() Section List::to array Yoast 27.7
public function to_array(): array {
$result = [];
foreach ( $this->sections as $section ) {
$result[] = $section->to_array();
}
return [ 'outline' => $result ];
}