In the baseFieldDefinitions method of my custom entity, I see I can provide a checkbox list with code like...
$fields['my_field'] = BaseFieldDefinition::create("list_string")
->setSetting('allowed_values', $$my_options)
->setLabel('My Field')
->setRequired(FALSE)
->setCardinality(-1)
->setDisplayOptions('form', array(
'type' => 'options_buttons',
'weight' => 5
))
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE);
But how would I specify radio buttons so the user can make only one selection from the list?