silverstripe-framework/tests/php/Forms/FormTest/ExtraFieldsForm.php
2016-11-23 19:25:12 +13:00

24 lines
419 B
PHP

<?php
namespace SilverStripe\Forms\Tests\FormTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Forms\CheckboxField;
use SilverStripe\Forms\Form;
/**
* @skipUpgrade
*/
class ExtraFieldsForm extends Form implements TestOnly
{
public function getExtraFields()
{
$fields = parent::getExtraFields();
$fields->push(new CheckboxField('ExtraFieldCheckbox', 'Extra Field Checkbox', 1));
return $fields;
}
}