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\Product\Edit\Button;
/**
* Class AddAttribute
*/
class AddAttribute extends Generic
{
/**
* {@inheritdoc}
*/
public function getButtonData()
{
return [
'label' => __('Add Attribute'),
'class' => 'action-secondary',
'data_attribute' => [
'mage-init' => [
'Magento_Ui/js/form/button-adapter' => [
'actions' => [
[
'targetName' => 'product_form.product_form.add_attribute_modal',
'actionName' => 'toggleModal'
],
[
'targetName' => 'product_form.product_form.add_attribute_modal.product_attributes_grid',
'actionName' => 'render'
]
]
]
]
],
'on_click' => '',
'sort_order' => 20
];
}
}
?>
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\Product\Edit\Button;
/**
* Class AddAttribute
*/
class AddAttribute extends Generic
{
/**
* {@inheritdoc}
*/
public function getButtonData()
{
return [
'label' => __('Add Attribute'),
'class' => 'action-secondary',
'data_attribute' => [
'mage-init' => [
'Magento_Ui/js/form/button-adapter' => [
'actions' => [
[
'targetName' => 'product_form.product_form.add_attribute_modal',
'actionName' => 'toggleModal'
],
[
'targetName' => 'product_form.product_form.add_attribute_modal.product_attributes_grid',
'actionName' => 'render'
]
]
]
]
],
'on_click' => '',
'sort_order' => 20
];
}
}
Function Calls
None |
Stats
MD5 | 770b8b88f6ae517db68fea73bc320b8d |
Eval Count | 0 |
Decode Time | 112 ms |