Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Copyright Magento, Inc. All rights reserved. * See COPYING.txt for license ..
Decoded Output download
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Block\Adminhtml\Category\Edit;
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
use Magento\Catalog\Block\Adminhtml\Category\AbstractCategory;
/**
* Class SaveButton
*/
class SaveButton extends AbstractCategory implements ButtonProviderInterface
{
/**
* Save button
*
* @return array
*/
public function getButtonData()
{
$category = $this->getCategory();
if (!$category->isReadonly() && $this->hasStoreRootCategory()) {
return [
'label' => __('Save'),
'class' => 'save primary',
'data_attribute' => [
'mage-init' => ['button' => ['event' => 'save']],
'form-role' => 'save',
],
'sort_order' => 30,
];
}
return [];
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Block\Adminhtml\Category\Edit;
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
use Magento\Catalog\Block\Adminhtml\Category\AbstractCategory;
/**
* Class SaveButton
*/
class SaveButton extends AbstractCategory implements ButtonProviderInterface
{
/**
* Save button
*
* @return array
*/
public function getButtonData()
{
$category = $this->getCategory();
if (!$category->isReadonly() && $this->hasStoreRootCategory()) {
return [
'label' => __('Save'),
'class' => 'save primary',
'data_attribute' => [
'mage-init' => ['button' => ['event' => 'save']],
'form-role' => 'save',
],
'sort_order' => 30,
];
}
return [];
}
}
Function Calls
None |
Stats
MD5 | c48117a6e4b38ee0e7e7fb02ac427677 |
Eval Count | 0 |
Decode Time | 83 ms |