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
$text )
Parameters
$text
— string
Returns
- string