Example
API reference › Extension template › Example
Provides a placeholder API that a new extension replaces with its own classes.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
getExample() | Returns the requested mode. | Example |
Method details
Section titled “Method details”getExample()
Section titled “getExample() ”public function getExample(bool $legacy = false): boolReturns the requested mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
$legacy | bool | Whether legacy mode is requested. |
Returns
bool: true for legacy mode, false otherwise.