Convert given argument to Language if it isn’t already, or null if languages not active
Usage
// basic usage
$language = $proCacheClass->language();
// usage with all arguments
$language = $proCacheClass->language($language = null, $property = '');
Arguments
Name | Type(s) | Description |
---|---|---|
language (optional) | Language, string, int, null | |
property (optional) |
Return value
Language
string
int
null
ProCacheClass methods and properties
API reference based on ProcessWire core version 3.0.236