\DevOwl\CustomizeUtils

Utility functionality for customize controls and output.

Summary

Methods
Properties
Constants
calculateOverlay()
hexToRgb()
getValue()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

calculateOverlay()

calculateOverlay(string  $hex,integer  $alpha)

Calculate rgba() from hex and alpha.

Parameters

string $hex
integer $alpha

hexToRgb()

hexToRgb(string  $hex)

Calculate RGB from hex string.

Parameters

string $hex

getValue()

getValue(string  $id,\DevOwl\Customize\AbstractCustomizePanel  $panel)

Get the value of a given setting ID. If it is currently in "save" mode, it returns the new value it tries to update.

Parameters

string $id
\DevOwl\Customize\AbstractCustomizePanel $panel