<?php
/**
* Landofcoder
*
* NOTICE OF LICENSE
*
* This source file is subject to the Landofcoder.com license that is
* available through the world-wide-web at this URL:
* http://Landofcoder.com/license
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Landofcoder
* @package Lofmp_Blog
* @copyright Copyright (c) 2016 Landofcoder (http://www.Landofcoder.com/)
* @license http://www.Landofcoder.com/LICENSE-1.0.html
*/
namespace Lofmp\Blog\Block\MarketPlace\Form\Category;
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
/**
* Class Create Button Block
*/
class CreateButton extends GenericButton implements ButtonProviderInterface
{
/**
* @return array|string
*/
public function getButtonData()
{
return [
'label' => __('Create'),
'class' => 'save primary',
'data_attribute' => [
'mage-init' => ['button' => ['event' => 'save']],
'form-role' => 'save',
],
'sort_order' => 10
];
}
}
|