3
0
Fork 0
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:
paul121 2021-05-26 10:05:16 -07:00 committed by Michael Stenta
parent 1f386ab989
commit 33e7ee6903

View file

@ -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,