function WizardTest::getOperations

Same name in other branches
  1. 4.0.x tests/modules/ctools_wizard_test/src/Wizard/WizardTest.php \Drupal\ctools_wizard_test\Wizard\WizardTest::getOperations()

Overrides FormWizardInterface::getOperations

File

tests/modules/ctools_wizard_test/src/Wizard/WizardTest.php, line 30

Class

WizardTest

Namespace

Drupal\ctools_wizard_test\Wizard

Code

public function getOperations($cached_values) {
    return [
        'one' => [
            'form' => 'Drupal\\ctools_wizard_test\\Form\\OneForm',
            'title' => $this->t('Form One'),
            'values' => [
                'dynamic' => 'Xylophone',
            ],
            'validate' => [
                '::stepOneValidate',
            ],
            'submit' => [
                '::stepOneSubmit',
            ],
        ],
        'two' => [
            'form' => 'Drupal\\ctools_wizard_test\\Form\\TwoForm',
            'title' => $this->t('Form Two'),
            'values' => [
                'dynamic' => 'Zebra',
            ],
        ],
    ];
}