You are here

class PriceListItemEvent in Commerce Pricelist 8.2

Defines the price list item event.

Hierarchy

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

Expanded class hierarchy of PriceListItemEvent

See also

\Drupal\commerce_pricelist\Event\PriceListEvents

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

File

src/Event/PriceListItemEvent.php, line 13

Namespace

Drupal\commerce_pricelist\Event
View source
class PriceListItemEvent extends Event {

  /**
   * The price list item.
   *
   * @var \Drupal\commerce_pricelist\Entity\PriceListItemInterface
   */
  protected $priceListItem;

  /**
   * Constructs a new PriceListItemEvent object.
   *
   * @param \Drupal\commerce_pricelist\Entity\PriceListItemInterface $price_list_item
   *   The price list item.
   */
  public function __construct(PriceListItemInterface $price_list_item) {
    $this->priceListItem = $price_list_item;
  }

  /**
   * Gets the price list item.
   *
   * @return \Drupal\commerce_pricelist\Entity\PriceListItemInterface
   *   Gets the price list item.
   */
  public function getPriceListItem() {
    return $this->priceListItem;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PriceListItemEvent::$priceListItem protected property The price list item.
PriceListItemEvent::getPriceListItem public function Gets the price list item.
PriceListItemEvent::__construct public function Constructs a new PriceListItemEvent object.