public function TamperDeleteForm::buildForm in Feeds Tamper 8.2
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.
\Drupal\feeds\FeedTypeInterface $feeds_feed_type: The feed that we are adding a tamper plugin to.
string $tamper_uuid: The tamper uuid.
Return value
array The form structure.
Overrides ConfirmFormBase::buildForm
File
- src/
Form/ TamperDeleteForm.php, line 72
Class
- TamperDeleteForm
- Tamper delete form.
Namespace
Drupal\feeds_tamper\FormCode
public function buildForm(array $form, FormStateInterface $form_state, FeedTypeInterface $feeds_feed_type = NULL, $tamper_uuid = NULL) {
$this
->assertTamper($feeds_feed_type, $tamper_uuid);
$this->feedsFeedType = $feeds_feed_type;
$tamper_meta = $this->feedTypeTamperManager
->getTamperMeta($feeds_feed_type);
$this->plugin = $tamper_meta
->getTamper($tamper_uuid);
$form = parent::buildForm($form, $form_state);
return $form;
}