You are here

interface PaymentFactoryInterface in Payment 8.2

Defines a payment factory service.

Hierarchy

Expanded class hierarchy of PaymentFactoryInterface

All classes that implement PaymentFactoryInterface

3 files declare their use of PaymentFactoryInterface
PaymentReference.php in modules/payment_reference/src/Plugin/Field/FieldWidget/PaymentReference.php
PaymentReferenceTest.php in modules/payment_reference/tests/src/Unit/PaymentReferenceTest.php
PaymentReferenceTest.php in modules/payment_reference/tests/src/Unit/Plugin/Field/FieldWidget/PaymentReferenceTest.php

File

modules/payment_reference/src/PaymentFactoryInterface.php, line 10

Namespace

Drupal\payment_reference
View source
interface PaymentFactoryInterface {

  /**
   * Creates a payment for a field.
   *
   * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
   *
   * @return \Drupal\payment\Entity\PaymentInterface
   */
  public function createPayment(FieldDefinitionInterface $field_definition);

}

Members

Namesort descending Modifiers Type Description Overrides
PaymentFactoryInterface::createPayment public function Creates a payment for a field. 1