PriceListEvent.php in Commerce Pricelist 8.2
Namespace
Drupal\commerce_pricelist\EventFile
src/Event/PriceListEvent.phpView source
<?php
namespace Drupal\commerce_pricelist\Event;
use Drupal\commerce_pricelist\Entity\PriceListInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Defines the price list event.
*
* @see \Drupal\commerce_pricelist\Event\PriceListEvents
*/
class PriceListEvent extends Event {
/**
* The price list.
*
* @var \Drupal\commerce_pricelist\Entity\PriceListInterface
*/
protected $priceList;
/**
* Constructs a new PriceListEvent object.
*
* @param \Drupal\commerce_pricelist\Entity\PriceListInterface $price_list
* The price list.
*/
public function __construct(PriceListInterface $price_list) {
$this->priceList = $price_list;
}
/**
* Gets the price list.
*
* @return \Drupal\commerce_pricelist\Entity\PriceListInterface
* Gets the price list.
*/
public function getPriceList() {
return $this->priceList;
}
}
Classes
Name | Description |
---|---|
PriceListEvent | Defines the price list event. |