SilverStripe\UserForms\Model\EditableCustomRule::toggleDisplayText
Returns the opposite visibility function for the value of the initial visibility field, e.g. show/hide. This will toggle the "hide" class either way, which is handled by CSS.
Signature
public function toggleDisplayText(string
$initialState,
[boolean
$invert = false] )
Parameters
$initialState
— string$invert
— boolean
Returns
- string