mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-08 01:37:36 +00:00
30 lines
713 B
PHP
30 lines
713 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Sales\Controller\Adminhtml\Order\View;
|
|
|
|
/**
|
|
* Adminhtml sales order view gift messages controller
|
|
*/
|
|
abstract class Giftmessage extends \Magento\Backend\App\Action
|
|
{
|
|
/**
|
|
* Authorization level of a basic admin session
|
|
*
|
|
* @see _isAllowed()
|
|
*/
|
|
public const ADMIN_RESOURCE = 'Magento_Sales::sales_order';
|
|
|
|
/**
|
|
* Retrieve gift message save model
|
|
*
|
|
* @return \Magento\GiftMessage\Model\Save
|
|
*/
|
|
protected function _getGiftmessageSaveModel()
|
|
{
|
|
return $this->_objectManager->get(\Magento\GiftMessage\Model\Save::class);
|
|
}
|
|
}
|