$content([$lang])->root()

Returns the root for the content file

  • $lang (string)
    Optional, language code in multi-lang installation
  • return (string)

Example

<?= $page->content()->root() ?>

//multi-lang installation
<?= $page->content('en')->root() ?>

Is something missing or incorrect? Edit this page on Github…