Skip to content
Snippets Groups Projects
Commit cfbb6527 authored by Pierre Dureau's avatar Pierre Dureau
Browse files

Issue #3395953 by just_like_good_vibes: ComponentElementBuilder, pick selected...

Issue #3395953 by just_like_good_vibes: ComponentElementBuilder, pick selected prop source if defined
parent 8887d5ad
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ class ComponentElementBuilder {
*/
protected function buildProp(array $build, string $prop_id, array $definition, array $configuration, array $contexts): array {
$prop_type = $definition['ui_patterns']['type_definition'];
$source_id = $this->sourcesManager->getPropTypeDefault($prop_type->getPluginId(), $contexts);
$source_id = array_key_exists("source_id", $configuration) ? $configuration["source_id"] : $this->sourcesManager->getPropTypeDefault($prop_type->getPluginId(), $contexts);
if (!$source_id) {
return $build;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment