silverstripe-spamprotection/tests/Stub/FormSpamProtectionExtensionTest_BarProtector.php

18 lines
372 B
PHP
Raw Normal View History

<?php
/**
* @package spamprotection
*/
class FormSpamProtectionExtensionTest_BarProtector implements SpamProtector, TestOnly
{
public function getFormField($name = null, $title = null, $value = null)
{
$title = $title ?: 'Bar';
return new TextField($name, $title, $value);
}
public function setFieldMapping($fieldMapping)
{
}
}