Spectral-Brain
Member
I have extended
I've tried
as well as
and neither seem to be triggered.
I have also tried specifying a validation class as well as not specifying it in my option.
Any thoughts on why this isn't being triggered?
AbstractOption
to create a custom Option. renderOption
is being triggered but when I click Save
in the Admin Options, it doesn't seem to trigger the verifyOption
as I have logging in there that isn't being triggered.I've tried
PHP:
public static function verifyOption(&$value, \XF\Entity\Option $option)
PHP:
public static function verifyOption(&$value)
I have also tried specifying a validation class as well as not specifying it in my option.
XML:
<?xml version="1.0" encoding="utf-8"?>
<options>
<option option_id="contactFormRules" edit_format="callback" data_type="array" validation_class="SpecModz\ContactFormOverride\Option\ContactFormRules" validation_method="verifyOption" advanced="0">
<default_value>[]</default_value>
<edit_format_params>SpecModz\ContactFormOverride\Option\ContactFormRules::renderOption</edit_format_params>
<sub_options>*</sub_options>
<relation group_id="contactFormOverride" display_order="1"/>
</option>
</options>
Any thoughts on why this isn't being triggered?