Files
piratepoet/lib/Form/PreviewWidget.php
Pavel Dohnal cdda3480ca Make all constructor signatures multiline
[MAILPOET-3732]
2021-09-16 14:19:40 +02:00

28 lines
441 B
PHP

<?php
namespace MailPoet\Form;
class PreviewWidget extends \WP_Widget {
/** @var string */
private $formHtml;
public function __construct(
$formHtml
) {
$this->formHtml = $formHtml;
parent::__construct(
'mailpoet_form_preview',
'Dummy form form preview',
[]
);
}
/**
* Output the widget itself.
*/
public function widget($args, $instance = null) {
echo $this->formHtml;
}
}