You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
416 B
23 lines
416 B
<?php
|
|
|
|
use Kirby\Cms\Role;
|
|
|
|
/**
|
|
* Role
|
|
*/
|
|
return [
|
|
'fields' => [
|
|
'description' => fn (Role $role) => $role->description(),
|
|
'name' => fn (Role $role) => $role->name(),
|
|
'permissions' => fn (Role $role) => $role->permissions()->toArray(),
|
|
'title' => fn (Role $role) => $role->title(),
|
|
],
|
|
'type' => Role::class,
|
|
'views' => [
|
|
'compact' => [
|
|
'description',
|
|
'name',
|
|
'title'
|
|
]
|
|
]
|
|
];
|
|
|