Closed (fixed)
Project:
FlowDrop
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2026 at 21:47 UTC
Updated:
5 Mar 2026 at 21:55 UTC
Jump to comment: Most recent
The flowdrop_ui_components:editor SDC component defines playground_url as type: string in its schema, but WorkflowController::edit()
explicitly passes NULL when the flowdrop_playground module is not enabled:
$playground_url = NULL;
if ($this->moduleHandler()->moduleExists('flowdrop_playground')) {
$playground_url = Url::fromRoute('flowdrop_playground.page', [...])->toString();
}
This causes a Twig runtime error:
[flowdrop_ui_components:editor/playground_url] NULL value found, but a string or an object is required.
The template already handles NULL correctly with {% if playground_url %}, so the issue is purely in the schema definition.
Change the playground_url prop type in editor.component.yml from type: string to type: ['string', 'null'] to allow NULL values.
Review and merge.
None.
None.
None.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
d34dman commented