$content->language()

Return the language code for the content

  • return (string)

Example

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