<?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:
* https://landofcoder.com/license-agreement.html
*
* 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 (https://landofcoder.com/)
* @license https://landofcoder.com/LICENSE-1.0.html
*/
namespace Lofmp\Blog\Block\Adminhtml\Category;
/**
* Class Save And Continue Button Block
*/
class SaveAndContinueButton extends \Lofmp\Blog\Block\Adminhtml\Edit\SaveAndContinueButton
{
/**
* @var string
*/
protected $fieldId = 'category_id';
/**
* @return array|string
*/
public function getButtonData()
{
if (!$this->authorization->isAllowed("Lofmp_Blog::category_save")) {
return [];
}
return parent::getButtonData();
}
}
|