123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\GiftMessage\Block\Message\Multishipping\Plugin;
- use Magento\Multishipping\Block\Checkout\Shipping as ShippingBlock;
- use Magento\GiftMessage\Helper\Message as MessageHelper;
- use Magento\Framework\DataObject;
- /**
- * Multishipping items box plugin
- */
- class ItemsBox
- {
- /**
- * Gift message helper
- *
- * @var MessageHelper
- */
- protected $helper;
- /**
- * Construct
- *
- * @param MessageHelper $helper
- */
- public function __construct(MessageHelper $helper)
- {
- $this->helper = $helper;
- }
- /**
- * Get items box message text for multishipping
- *
- * @param ShippingBlock $subject
- * @param string $itemsBoxText
- * @param DataObject $addressEntity
- *
- * @return string
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
- */
- public function afterGetItemsBoxTextAfter(ShippingBlock $subject, $itemsBoxText, DataObject $addressEntity)
- {
- return $itemsBoxText . $this->helper->getInline('multishipping_address', $addressEntity);
- }
- }
|