class PaymentReference in Payment 8.2
Same name in this branch
- 8.2 modules/payment_reference/src/PaymentReference.php \Drupal\payment_reference\PaymentReference
- 8.2 modules/payment_reference/src/Element/PaymentReference.php \Drupal\payment_reference\Element\PaymentReference
- 8.2 modules/payment_reference/src/Plugin/Payment/Type/PaymentReference.php \Drupal\payment_reference\Plugin\Payment\Type\PaymentReference
- 8.2 modules/payment_reference/src/Plugin/Field/FieldWidget/PaymentReference.php \Drupal\payment_reference\Plugin\Field\FieldWidget\PaymentReference
- 8.2 modules/payment_reference/src/Plugin/Field/FieldType/PaymentReference.php \Drupal\payment_reference\Plugin\Field\FieldType\PaymentReference
Provides wrappers for services.
Hierarchy
- class \Drupal\payment_reference\PaymentReference
Expanded class hierarchy of PaymentReference
5 files declare their use of PaymentReference
- PaymentReference.php in modules/
payment_reference/ src/ Plugin/ Field/ FieldType/ PaymentReference.php - PaymentReferenceElement.php in modules/
payment_reference_test/ src/ PaymentReferenceElement.php - PaymentReferenceTest.php in modules/
payment_reference/ tests/ src/ Unit/ PaymentReferenceTest.php - PaymentReferenceWebTest.php in modules/
payment_reference/ tests/ src/ Functional/ Plugin/ Field/ FieldType/ PaymentReferenceWebTest.php - payment_reference.module in modules/
payment_reference/ payment_reference.module - Hook implementations and general functions.
File
- modules/
payment_reference/ src/ PaymentReference.php, line 8
Namespace
Drupal\payment_referenceView source
class PaymentReference {
/**
* Returns the payment factory.
*
* @return \Drupal\payment_reference\PaymentFactoryInterface
*/
public static function factory() {
return \Drupal::service('payment_reference.payment_factory');
}
/**
* Returns the payment reference queue.
*
* @return \Drupal\payment\QueueInterface
*/
public static function queue() {
return \Drupal::service('payment_reference.queue');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PaymentReference:: |
public static | function | Returns the payment factory. | |
PaymentReference:: |
public static | function | Returns the payment reference queue. |