You are here

class PriceListEvent in Commerce Pricelist 8.2

Defines the price list event.

Hierarchy

  • class \Drupal\commerce_pricelist\Event\PriceListEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of PriceListEvent

See also

\Drupal\commerce_pricelist\Event\PriceListEvents

1 file declares its use of PriceListEvent
commerce_pricelist.install in ./commerce_pricelist.install
Install, update and uninstall functions for the Pricelist module.

File

src/Event/PriceListEvent.php, line 13

Namespace

Drupal\commerce_pricelist\Event
View source
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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PriceListEvent::$priceList protected property The price list.
PriceListEvent::getPriceList public function Gets the price list.
PriceListEvent::__construct public function Constructs a new PriceListEvent object.