Return this object’s class name
By default, this method returns the class name without namespace. To include the namespace, call it with boolean true as the first argument.
Example
echo $page->className(); // outputs: Page
echo $page->className(true); // outputs: ProcessWire\Page
Usage
// basic usage
$string = $wire->className();
// usage with all arguments
$string = $wire->className($options = null);
Arguments
Name | Type(s) | Description |
---|---|---|
options (optional) | array, bool, null | Specify boolean
|
Return value
string
String with class name
API reference based on ProcessWire core version 3.0.236