interface PaymentFactoryInterface in Payment 8.2
Defines a payment factory service.
Hierarchy
- interface \Drupal\payment_reference\PaymentFactoryInterface
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_referenceView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PaymentFactoryInterface:: |
public | function | Creates a payment for a field. | 1 |