$language->default()

Checks if this is the default language

  • return (boolean)

Example

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