/** * {@inheritdoc} */ public function isDisplayGirthValue() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'isDisplayGirthValue'); if (!$pluginInfo) { return parent::isDisplayGirthValue(); } else { return $this->___callPlugins('isDisplayGirthValue', func_get_args(), $pluginInfo); } }
/** * Is display girth value for specified shipping method * * @param \Magento\Shipping\Block\Adminhtml\Order\Packaging $subject * @param \Closure $proceed * * @return bool * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function aroundIsDisplayGirthValue(Packaging $subject, \Closure $proceed) { return $this->helper->displayGirthValue($subject->getShipment()->getOrder()->getShippingMethod()); }