CommentSelectForm.php in WordPress Migrate 8.3
File
wordpress_migrate_ui/src/Form/CommentSelectForm.php
View source
<?php
namespace Drupal\wordpress_migrate_ui\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
class CommentSelectForm extends FormBase {
public function getFormId() {
return 'wordpress_migrate_comment_select_form';
}
public function buildForm(array $form, FormStateInterface $form_state) {
$cached_values = $form_state
->getTemporaryValue('wizard');
unset($cached_values['comment']);
$form_state
->setTemporaryValue('wizard', $cached_values);
$form['overview'] = [
'#markup' => $this
->t('WordPress blogs contain comments.'),
];
return $form;
}
public function validateForm(array &$form, FormStateInterface $form_state) {
}
public function submitForm(array &$form, FormStateInterface $form_state) {
$cached_values = $form_state
->getTemporaryValue('wizard');
$form_state
->setTemporaryValue('wizard', $cached_values);
}
}