EntityExtraFieldInfo.php in Payment 8.2
File
modules/payment_reference/src/Hook/EntityExtraFieldInfo.php
View source
<?php
namespace Drupal\payment_reference\Hook;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\StringTranslation\TranslationInterface;
class EntityExtraFieldInfo {
use StringTranslationTrait;
public function __construct(TranslationInterface $string_translation) {
$this->stringTranslation = $string_translation;
}
public function invoke() {
$fields['payment']['payment_reference']['form'] = [
'payment_method' => [
'label' => $this
->t('Payment method selection and configuration'),
'weight' => 1,
],
];
return $fields;
}
}