ExampleConfigEntityExistingForm.php in Chaos Tool Suite (ctools) 8.3
File
tests/modules/ctools_wizard_test/src/Form/ExampleConfigEntityExistingForm.php
View source
<?php
namespace Drupal\ctools_wizard_test\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
class ExampleConfigEntityExistingForm extends FormBase {
public function getFormId() {
return 'ctools_wizard_test_config_entity_existing_form';
}
public function buildForm(array $form, FormStateInterface $form_state) {
$form['existing'] = [
'#markup' => '<p>This step only shows if the entity is already existing!</p>',
];
return $form;
}
public function submitForm(array &$form, FormStateInterface $form_state) {
}
}