class EntityExtraFieldInfo in Payment 8.2
Same name in this branch
- 8.2 modules/payment_reference/src/Hook/EntityExtraFieldInfo.php \Drupal\payment_reference\Hook\EntityExtraFieldInfo
- 8.2 modules/payment_form/src/Hook/EntityExtraFieldInfo.php \Drupal\payment_form\Hook\EntityExtraFieldInfo
Implements hook_entity_extra_field_info().
Hierarchy
- class \Drupal\payment_reference\Hook\EntityExtraFieldInfo uses StringTranslationTrait
Expanded class hierarchy of EntityExtraFieldInfo
See also
payment_reference_entity_extra_field_info()
1 file declares its use of EntityExtraFieldInfo
- EntityExtraFieldInfoTest.php in modules/
payment_reference/ tests/ src/ Unit/ Hook/ EntityExtraFieldInfoTest.php
1 string reference to 'EntityExtraFieldInfo'
- payment_reference.services.yml in modules/
payment_reference/ payment_reference.services.yml - modules/payment_reference/payment_reference.services.yml
1 service uses EntityExtraFieldInfo
File
- modules/
payment_reference/ src/ Hook/ EntityExtraFieldInfo.php, line 13
Namespace
Drupal\payment_reference\HookView source
class EntityExtraFieldInfo {
use StringTranslationTrait;
/**
* Constructs a new instance.
*
* @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
*/
public function __construct(TranslationInterface $string_translation) {
$this->stringTranslation = $string_translation;
}
/**
* Invokes the implementation.
*/
public function invoke() {
$fields['payment']['payment_reference']['form'] = [
'payment_method' => [
'label' => $this
->t('Payment method selection and configuration'),
'weight' => 1,
],
];
return $fields;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityExtraFieldInfo:: |
public | function | Invokes the implementation. | |
EntityExtraFieldInfo:: |
public | function | Constructs a new instance. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |