Skip to content

Kirby 4.5.0

$pages->keys()

Returns an array of all keys

$pages->keys(): array

Return type

array

Parent class

Kirby\Cms\Pages inherited from Kirby\Toolkit\Iterator

Example

Example pages

  • project-a
  • project-b
  • project-c
<?php dump($page->children()->keys()) ?>
/*
[
  'project-a',
  'project-b',
  'project-c'
]
*/