$language->name()

Returns the full name of the language

  • return (string)

Example

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