designtopack/public/site/models/project.php

15 lines
300 B
PHP
Raw Normal View History

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