- 🇩🇪Germany ckaotik Berlin
This behavior is - in theory - configurable. However, it's not yet exposed anywhere, see #2822336: Plugin selector field widget configuration → .
When there is only one plugin of the type used by the field, the field widget just shows the field label and nothing else. This looks completely broken.
Poking at the code, it looks like what's going on is that the widget sets a value, which doesn't output in the form:
$element['select']['container']['plugin_id'] = array(
'#type' => 'value',
'#value' => $this->getSelectedPlugin()->getPluginId(),
);
This is bad on two counts:
a) it's really bad UX to show something that looks broken. If there is only one option that must be selected, show it and disable the form element
b) it's NOT the only option anyway, as if the field is not required the user could select nothing.
Needs work
2.0
User interface
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This behavior is - in theory - configurable. However, it's not yet exposed anywhere, see #2822336: Plugin selector field widget configuration → .