Helper for censoring option.

package XenForo_Options

 Methods

Renders the censor words option row.

renderOption(\XenForo_View $view, string $fieldPrefix, array $preparedOption, boolean $canEdit) : \XenForo_Template_Abstract

Parameters

$view

\XenForo_View

View object

$fieldPrefix

string

Prefix for the HTML form field name

$preparedOption

array

Prepared option info

$canEdit

boolean

True if an "edit" link should appear

Returns

Verifies and prepares the censor option to the correct format.

verifyOption(array $words, \XenForo_DataWriter $dw, string $fieldName) : true

Parameters

$words

array

List of words to censor (from input). Keys: word, exact, replace

$dw

\XenForo_DataWriter

Calling DW

$fieldName

string

Name of field/option

Returns

true