Skip to content
Snippets Groups Projects
Commit a22fee34 authored by Tom Keitel's avatar Tom Keitel Committed by Pierre Dureau
Browse files

Issue #3466359 by hctom: Allow computed fields to use Component formatter

parent 852abf66
No related branches found
No related tags found
1 merge request!184#3466359 [2.0.0-beta2] Allow computed fields to use "Component per item (UI Patterns)" formatter and its source plugins like any other field
Pipeline #272433 passed with warnings
......@@ -282,7 +282,7 @@ abstract class EntityFieldSourceDeriverBase extends DeriverBase implements Conta
"fields" => [],
];
foreach ($field_definitions as $field_name => $field_definition) {
if (!array_key_exists($field_name, $field_storage_definitions)) {
if (!array_key_exists($field_name, $field_storage_definitions) && !$field_definition->isComputed()) {
continue;
}
$item_definition = $field_definition->getItemDefinition();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment