❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$content->language()
Return the language code for the content
return
(string)
Example
<?= $page->content()->language() ?>
↑
Cheat Sheet overview
←
$content([$lang])->has($key)
→
$content->name()
↓
Back to Cheat Sheet section
Top