Skip to content
Snippets Groups Projects

Issue #3355983: Support the Entity Form/Display Field Label module

2 files
+ 10
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -185,6 +185,11 @@ class PatternOneForAllFormatter extends FieldWrapperBase implements ContainerFac
$fields[$field['destination']][] = $items->getFieldDefinition()->getThirdPartySetting('field_display_label', 'display_label');
}
}
elseif ($field['source'] == '_entity_form_field_label') {
if ($this->moduleHandler->moduleExists('entity_form_field_label')) {
$fields[$field['destination']][] = $this->getThirdPartySetting('entity_form_field_label', 'new_label');
}
}
elseif ($field['source'] == '_formatted') {
$field_output = $this->getFieldOutput($items, $langcode);
// Take the element children from the field output and return them.
Loading