$languages
The $languages
object gives you a collection of all the languages that have been defined for your Kirby installation. The methods of this class allow you to filter, find, group, search the languages collection.
- $languages->add()
- $languages->append()
- $languages->chunk()
- $languages->clone()
- $languages->codes()
- $languages->count()
- $languages->current()
- $languages->data()
- $languages->default()
- $languages->empty()
- $languages->extend()
- $languages->filter()
- $languages->filterBy()
- $languages->find()
- $languages->findBy()
- $languages->findByKey()
- $languages->first()
- $languages->flip()
- $languages->get()
- $languages->getAttribute()
- $languages->getIterator()
- $languages->group()
- $languages->groupBy()
- $languages->has()
- $languages->indexOf()
- $languages->intersection()
- $languages->intersects()
- $languages->isEmpty()
- $languages->isEven()
- $languages->isNotEmpty()
- $languages->isOdd()
- $languages->key()
- $languages->keyOf()
- $languages->keys()
- $languages->last()
- $languages->limit()
- $languages->map()
- $languages->next()
- $languages->not()
- $languages->nth()
- $languages->offset()
- $languages->paginate()
- $languages->pagination()
- $languages->parent()
- $languages->pluck()
- $languages->prepend()
- $languages->prev()
- $languages->query()
- $languages->random()
- $languages->remove()
- $languages->rewind()
- $languages->search()
- $languages->set()
- $languages->shuffle()
- $languages->slice()
- $languages->sort()
- $languages->sortBy()
- $languages->toArray()
- $languages->toJson()
- $languages->toString()
- $languages->valid()
- $languages->values()
- $languages->when()
- $languages->without()
- Languages::sortArgs()
- new Languages()
Details
To use the methods of the $languages
class, you need a $languages
object, which you get can like this:
With the object in place, you can now use it like this: