Skip to content

Kirby 5.1.4

$role->toArray()

Converts the most important role properties to an array

$role->toArray(): array

Return type

array

This method modifies the existing $role object it is applied to and returns it again.

Parent class

Kirby\Cms\Role