$page->uid()

The UID is the page directory name without the sorting number.

  • return (string)

Example

<?php echo $page->uid() ?>