1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 
<?php
namespace Omeka\Form;

use Zend\Form\Form;

/**
 * General form for confirming an irreversable action in a sidebar.
 */
class ConfirmForm extends Form
{
    public function init()
    {
        $this->add([
            'type' => 'submit',
            'name' => 'submit',
            'attributes' => [
                'value' => 'Confirm', // @translate
            ],
        ]);
    }

    public function setButtonLabel($label)
    {
        $this->get('submit')->setAttribute('value', $label);
    }
}