Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PriceBackend.php
Go to the documentation of this file.
1 <?php
7 
14 {
22  public function aroundValidate(
23  \Magento\Catalog\Model\Product\Attribute\Backend\Price $subject,
24  \Closure $proceed,
25  $object
26  ) {
27  if ($object instanceof \Magento\Catalog\Model\Product
28  && $object->getTypeId() == \Magento\Catalog\Model\Product\Type::TYPE_BUNDLE
30  ) {
31  return true;
32  }
33  return $proceed($object);
34  }
35 }
aroundValidate(\Magento\Catalog\Model\Product\Attribute\Backend\Price $subject, \Closure $proceed, $object)