$page->urlKey($lang = null)

Returns the URL key from the content file if available and otherwise returns the page UID

  • $lang (string)
  • return (string)

Method only exists for multi-language sites.

Example

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