<?php
namespace Benhauer\Salesmanago\Block\Adminhtml\Client;

use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;

/**
 * Class ResetButton
 */
class LoginCreateButton extends GenericButton implements ButtonProviderInterface
{
    /**
     * @return array
     */
    public function getButtonData()
    {
        return [
            'label' => __('Go to Create Account'),
            'class' => 'reset',
            'on_click' => sprintf("location.href = '%s';", $this->getBackUrl()),
            'sort_order' => 30
        ];
    }

    public function getBackUrl()
    {
        return $this->getUrl('*/*/create');
    }
}
