Update Kirby and dependencies
This commit is contained in:
parent
750b9cc83e
commit
8c71a258b6
59 changed files with 2143 additions and 813 deletions
|
@ -14,6 +14,11 @@ namespace Kirby\Panel;
|
|||
*/
|
||||
class User extends Model
|
||||
{
|
||||
/**
|
||||
* @var \Kirby\Cms\User
|
||||
*/
|
||||
protected $model;
|
||||
|
||||
/**
|
||||
* Breadcrumb array
|
||||
*
|
||||
|
@ -193,14 +198,8 @@ class User extends Model
|
|||
$user = $this->model;
|
||||
|
||||
return [
|
||||
'next' => function () use ($user) {
|
||||
$next = $user->next();
|
||||
return $next ? $next->panel()->toLink('username') : null;
|
||||
},
|
||||
'prev' => function () use ($user) {
|
||||
$prev = $user->prev();
|
||||
return $prev ? $prev->panel()->toLink('username') : null;
|
||||
}
|
||||
'next' => fn () => $this->toPrevNextLink($user->next(), 'username'),
|
||||
'prev' => fn () => $this->toPrevNextLink($user->prev(), 'username')
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue