kirby()

Returns the Kirby object in any situation

  • return ($kirby)

Example

<?php echo kirby()->roots()->content() ?>