silverstripe-multiform/tests/Stubs/MultiFormStepOne.php

24 lines
619 B
PHP
Raw Normal View History

2017-09-07 01:17:54 +02:00
<?php
namespace SilverStripe\MultiForm\Tests\Stubs;
2017-09-07 01:17:54 +02:00
use SilverStripe\Dev\TestOnly;
use SilverStripe\Forms\EmailField;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\TextField;
use SilverStripe\MultiForm\Models\MultiFormStep;
class MultiFormTestStepOne extends MultiFormStep implements TestOnly
2017-09-07 01:17:54 +02:00
{
2017-09-08 04:24:28 +02:00
private static $next_steps = MultiFormTestStepTwo::class;
2017-09-07 01:17:54 +02:00
public function getFields()
{
return FieldList::create(
new TextField('FirstName', 'First name'),
new TextField('Surname', 'Surname'),
new EmailField('Email', 'Email address')
);
}
2017-09-07 01:17:54 +02:00
}