Skip to content

Kirby 4.4.1

$language->name()

Returns the human-readable name of the language

$language->name(): string

Return type

string

Parent class

Kirby\Cms\Language

Example

<ul>
  <?php foreach($site->languages() as $language): ?>
  <li>
    <a href="<?= $language->url() ?>">
      <?= html($language->name()) ?>
    </a>
  </li>
  <?php endforeach ?>
</ul>