2024-09-26 15:46:13 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
class ProjectPage extends Page {
|
|
|
|
|
public function getSteps() {
|
|
|
|
|
|
2024-09-26 17:21:24 +02:00
|
|
|
$steps = array_map(function($child) {
|
|
|
|
|
return [
|
|
|
|
|
'text' => $child['content']['title'],
|
|
|
|
|
'value' => $child['content']['stepname']
|
2024-09-26 15:46:13 +02:00
|
|
|
];
|
2024-09-26 17:21:24 +02:00
|
|
|
}, $this->children()->toArray());
|
2024-09-26 15:46:13 +02:00
|
|
|
|
|
|
|
|
return $steps;
|
|
|
|
|
}
|
|
|
|
|
}
|