$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.
-
new Languages()
-
$languages->add()
-
$languages->append()
-
$languages->callMethod()
-
$languages->chunk()
-
$languages->clone()
-
$languages->codes()
-
$languages->count()
-
$languages->create()
-
$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->hasMethod()
-
$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::load()
-
$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->remove()
-
$languages->rewind()
-
$languages->search()
-
$languages->set()
-
$languages->shuffle()
-
$languages->slice()
-
$languages->sort()
-
Languages::sortArgs()
-
$languages->sortBy()
-
$languages->toArray()
-
$languages->toJson()
-
$languages->toString()
-
$languages->valid()
-
$languages->values()
-
$languages->when()
-
$languages->without()
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: