$language->code()

Returns the iso language code

  • return (string)

Example

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