2026-02-09 20:57:56 +01:00
|
|
|
<?php
|
|
|
|
|
class YearPage extends Page{
|
|
|
|
|
public function allTexts(){
|
2026-03-28 16:53:17 +01:00
|
|
|
$princeps = $this->children()->listed()->first();
|
|
|
|
|
|
|
|
|
|
$texts = $this->children()->listed()->without($princeps);
|
2026-02-09 20:57:56 +01:00
|
|
|
$linked = $this->linkedTexts()->toPages();
|
2026-03-28 16:53:17 +01:00
|
|
|
$allTexts = $texts->merge($linked);
|
|
|
|
|
|
|
|
|
|
return $allTexts->sort('published', 'desc')->prepend($princeps);
|
2026-02-09 20:57:56 +01:00
|
|
|
}
|
|
|
|
|
}
|