SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension
An extension to the {@link Form} class which provides the method {@link enableSpamProtection()} helper.
Synopsis
class FormSpamProtectionExtension
extends Extension
{
- // members
- private static $default_spam_protector;
- private static array $mappable_fields = ;
- private static string $field_name = "Captcha";
- // methods
- public static SpamProtector|null get_protector()
- public Object enableSpamProtection()
Hierarchy
Extends
- SilverStripe\Core\Extension
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $default_spam_protector — string
- $field_name — string
- $mappable_fields — array
Methods
public
- enableSpamProtection() — Activates the spam protection module.
- get_protector() — Instantiate a SpamProtector instance