Example #1
0
 /**
  * {@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);
     }
 }
Example #2
0
 /**
  * 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());
 }