Function: toPhp()
function toPhp(block, generator): [string, Order];
Defined in: plugins/field-colour/src/blocks/colourPicker.ts:95
PHP block generator function.
Parameters
| Parameter | Type | Description |
|---|---|---|
block | Block | The Block instance to generate code for. |
generator | PhpGenerator | The PhpGenerator calling the function. |
Returns
[string, Order]
A tuple containing the code string and precedence.