Remove EventPage model
This commit is contained in:
parent
f037bde662
commit
f2c45afbec
1 changed files with 0 additions and 16 deletions
|
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
class EventPage extends Page
|
|
||||||
{
|
|
||||||
public function sortedDates(): array
|
|
||||||
{
|
|
||||||
$groups = array_values($this->dates()->toStructure()->data());
|
|
||||||
|
|
||||||
usort($groups, fn($a, $b) => strcmp(
|
|
||||||
$b->to()->value() ?? '',
|
|
||||||
$a->to()->value() ?? ''
|
|
||||||
));
|
|
||||||
|
|
||||||
return $groups;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue