mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Render the data stream public field as a yes-no boolean.
This commit is contained in:
parent
1f386ab989
commit
33e7ee6903
|
@ -198,6 +198,14 @@ class DataStream extends ContentEntityBase implements DataStreamInterface {
|
|||
->setLabel(t('Public'))
|
||||
->setDescription(t('If the data stream has public access via API.'))
|
||||
->setDefaultValue(FALSE)
|
||||
->setDisplayOptions('view', [
|
||||
'label' => 'inline',
|
||||
'type' => 'boolean',
|
||||
'settings' => [
|
||||
'format' => 'yes-no',
|
||||
],
|
||||
'weight' => -3,
|
||||
])
|
||||
->setDisplayOptions('form', [
|
||||
'type' => 'boolean_checkbox',
|
||||
'weight' => 5,
|
||||
|
|
Loading…
Reference in a new issue