Helper for censoring option.
package | XenForo_Options |
---|
renderOption(\XenForo_View $view, string $fieldPrefix, array $preparedOption, boolean $canEdit) : \XenForo_Template_Abstract
string
Prefix for the HTML form field name
array
Prepared option info
boolean
True if an "edit" link should appear
\XenForo_Template_Abstract
Template objectverifyOption(array $words, \XenForo_DataWriter $dw, string $fieldName) : true
array
List of words to censor (from input). Keys: word, exact, replace
string
Name of field/option
true