You are here

PaymentFactoryInterface.php in Payment 8.2

File

modules/payment_reference/src/PaymentFactoryInterface.php
View source
<?php

namespace Drupal\payment_reference;

use Drupal\Core\Field\FieldDefinitionInterface;

/**
 * Defines a payment factory service.
 */
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);

}

Interfaces

Namesort descending Description
PaymentFactoryInterface Defines a payment factory service.