You are here

class ProductLoadEvent in Ubercart 8.4

Event that is fired when a product is being loaded.

Hierarchy

  • class \Drupal\uc_product\Event\ProductLoadEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of ProductLoadEvent

1 file declares its use of ProductLoadEvent
uc_product.module in uc_product/uc_product.module
The product module for Ubercart.

File

uc_product/src/Event/ProductLoadEvent.php, line 11

Namespace

Drupal\uc_product\Event
View source
class ProductLoadEvent extends Event {
  const EVENT_NAME = 'uc_product_load';

  /**
   * The product.
   *
   * @var \Drupal\node\NodeInterface
   */
  public $product;

  /**
   * Constructs the object.
   *
   * @param \Drupal\node\NodeInterface $product
   *   The product object.
   */
  public function __construct(NodeInterface $product) {
    $this->product = $product;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ProductLoadEvent::$product public property The product.
ProductLoadEvent::EVENT_NAME constant
ProductLoadEvent::__construct public function Constructs the object.