$site->id()

Returns the site id, which is an empty string in case of the site object

  • return (string)

Example

<?= $site->id() ?>