You are here

public function DeleteFeedForm::buildForm in Feed Import 8

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides ConfirmFormBase::buildForm

File

src/Form/DeleteFeedForm.php, line 57
Contains \Drupal\feed_import\Form\DeleteFeedForm

Class

DeleteFeedForm
Builds the form to delete a feed.

Namespace

Drupal\feed_import\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $fid = NULL) {
  $this->feed = FeedImport::loadFeed($fid);
  $form['hashes'] = array(
    '#type' => 'checkbox',
    '#title' => t('Also delete hashes'),
  );
  return parent::buildForm($form, $form_state);
}