Add block renderers to DI container

[MAILPOET-2665]
This commit is contained in:
Rostislav Wolny
2020-01-29 17:05:36 +01:00
committed by Jack Kitterhing
parent d9b9e13a04
commit 6827eb93e6
14 changed files with 169 additions and 85 deletions

View File

@@ -4,12 +4,12 @@ namespace MailPoet\Form\Block;
class Submit extends Base {
public static function render($block) {
public function render($block) {
$html = '';
$html .= '<p class="mailpoet_paragraph"><input type="submit" class="mailpoet_submit" ';
$html .= 'value="' . static::getFieldLabel($block) . '" ';
$html .= 'value="' . $this->getFieldLabel($block) . '" ';
$html .= 'data-automation-id="subscribe-submit-button" ';