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 
9 
16 {
24  public function aroundValidate(
25  \Magento\Catalog\Model\Product\Attribute\Backend\Price $subject,
26  \Closure $proceed,
27  $object
28  ) {
29  if ($object instanceof \Magento\Catalog\Model\Product
30  && $object->getTypeId() == Configurable::TYPE_CODE
31  ) {
32  return true;
33  } else {
34  return $proceed($object);
35  }
36  }
37 }
aroundValidate(\Magento\Catalog\Model\Product\Attribute\Backend\Price $subject, \Closure $proceed, $object)