You are here

class PaymentReference in Payment 8.2

Same name in this branch
  1. 8.2 modules/payment_reference/src/PaymentReference.php \Drupal\payment_reference\PaymentReference
  2. 8.2 modules/payment_reference/src/Element/PaymentReference.php \Drupal\payment_reference\Element\PaymentReference
  3. 8.2 modules/payment_reference/src/Plugin/Payment/Type/PaymentReference.php \Drupal\payment_reference\Plugin\Payment\Type\PaymentReference
  4. 8.2 modules/payment_reference/src/Plugin/Field/FieldWidget/PaymentReference.php \Drupal\payment_reference\Plugin\Field\FieldWidget\PaymentReference
  5. 8.2 modules/payment_reference/src/Plugin/Field/FieldType/PaymentReference.php \Drupal\payment_reference\Plugin\Field\FieldType\PaymentReference

Provides wrappers for services.

Hierarchy

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_reference
View 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

Namesort descending Modifiers Type Description Overrides
PaymentReference::factory public static function Returns the payment factory.
PaymentReference::queue public static function Returns the payment reference queue.