$lock->toArray()
Converts the lock info to an array. This is directly usable for Panel view props.
$lock->toArray() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.