class PaymentPreExecute in Payment 8.2
Provides an event that is dispatched before a payment is executed.
Hierarchy
- class \Drupal\payment\Event\PaymentPreExecute extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of PaymentPreExecute
See also
\Drupal\payment\Event\PaymentEvents::PAYMENT_PRE_EXECUTE
4 files declare their use of PaymentPreExecute
- EventDispatcherCollectionTest.php in tests/
src/ Unit/ EventDispatcherCollectionTest.php - PaymentPreExecuteTest.php in tests/
src/ Unit/ Event/ PaymentPreExecuteTest.php - SymfonyEventDispatcher.php in src/
SymfonyEventDispatcher.php - SymfonyEventDispatcherTest.php in tests/
src/ Unit/ SymfonyEventDispatcherTest.php
File
- src/
Event/ PaymentPreExecute.php, line 13
Namespace
Drupal\payment\EventView source
class PaymentPreExecute extends Event {
/**
* The payment.
*
* @var \Drupal\payment\Entity\PaymentInterface
*/
protected $payment;
/**-
* Constructs a new instance.
*
* @param \Drupal\payment\Entity\PaymentInterface $payment
* The payment that will be executed.
*
* @param \Drupal\Core\Session\AccountInterface
*/
public function __construct(PaymentInterface $payment) {
$this->payment = $payment;
}
/**
* Gets the payment that will be executed
*
* @return \Drupal\payment\Entity\PaymentInterface
*/
public function getPayment() {
return $this->payment;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PaymentPreExecute:: |
protected | property | The payment. | |
PaymentPreExecute:: |
public | function | Gets the payment that will be executed | |
PaymentPreExecute:: |
public | function |