mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
23 lines
445 B
PHP
23 lines
445 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;
|
|
}
|
|
}
|