23 private $configurationPool;
28 private $eventManager;
33 private $totalsItemFactory;
38 private $dataObjectHelper;
57 EventManager $eventManager,
62 $this->configurationPool = $configurationPool;
63 $this->eventManager = $eventManager;
64 $this->totalsItemFactory = $totalsItemFactory;
79 $this->eventManager->dispatch(
'items_additional_data', [
'item' =>
$item]);
81 $items[
'options'] = $this->getFormattedOptionValue(
$item);
84 $itemsData = $this->totalsItemFactory->create();
85 $this->dataObjectHelper->populateWithArray(
99 private function getFormattedOptionValue(
$item)
104 $helper = $this->configurationPool->getByProductType(
'default');
106 $options = $this->configurationPool->getByProductType(
$item->getProductType())->getOptions(
$item);
110 'cut_replacer' =>
' <a href="#" class="dots tooltip toggle" onclick="return false">...</a>'
const EXTENSION_ATTRIBUTES_KEY
__construct(ConfigurationPool $configurationPool, EventManager $eventManager, \Magento\Quote\Api\Data\TotalsItemInterfaceFactory $totalsItemFactory, DataObjectHelper $dataObjectHelper, \Magento\Framework\Serialize\Serializer\Json $serializer=null)
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]