$language->name()
Returns the human-readable name of the language
$language->name(): stringReturn type
string
This method modifies the existing $language object it is applied to and returns it again.
Parent class
Examples
<ul>
  <?php foreach($site->languages() as $language): ?>
  <li>
    <a href="<?= $language->url() ?>">
      <?= html($language->name()) ?>
    </a>
  </li>
  <?php endforeach ?>
</ul>