<?php
namespace Website\Widgets\FormElements; use Moto; class ButtonSubmitWidget extends AbstractFormElementWidget { protected $_name = 'form_elements.button_submit'; protected static $_defaultProperties = array( 'preset' => 'default', 'label' => 'Submit', 'waitingText' => '', 'size' => 'medium', 'align' => array( 'desktop' => 'left', 'tablet' => '', 'mobile-v' => '', 'mobile-h' => '', ), 'spacing' => array( 'top' => 'auto', 'right' => 'auto', 'bottom' => 'auto', 'left' => 'auto', ), ); protected $_templateType = 'templates'; protected $_widgetId = true; public function getTemplatePath($preset = null) { return '@websiteWidgets/form_elements/templates/button_submit.twig.html'; } } 