Skip to content
Snippets Groups Projects

Issue #3471255: Payments listing (admin/content/payments) is broken after...

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -98,6 +98,9 @@ class PaymentForm extends PaymentTypeBase implements ContainerFactoryPluginInter
* {@inheritdoc}
*/
public function getPaymentDescription() {
if (!$this->getEntityTypeId() || !$this->getBundle()) {
return new TranslatableMarkup('Unavailable');
}
$field_definitions = $this->entityFieldManager->getFieldDefinitions($this->getEntityTypeId(), $this->getBundle());
return isset($field_definitions[$this->getFieldName()]) ? $field_definitions[$this->getFieldName()]->getLabel() : new TranslatableMarkup('Unavailable');
Loading