public function ProductLoadEvent::__construct in Ubercart 8.4
Constructs the object.
Parameters
\Drupal\node\NodeInterface $product: The product object.
File
- uc_product/
src/ Event/ ProductLoadEvent.php, line 28
Class
- ProductLoadEvent
- Event that is fired when a product is being loaded.
Namespace
Drupal\uc_product\EventCode
public function __construct(NodeInterface $product) {
$this->product = $product;
}