Unable to get my ContentEntity base field definition to appear as checkboxes I am trying to implement a base field with multiple selections as checkboxes I have had a go at implementing it but it stills appears as a select even after clearing the cache. I'm sure I'm doing this wrong but this is what I have:

$fields['content_display'] = BaseFieldDefinition::create('list_integer')
  -&gt;setDisplayOptions('form', array(
    'type' =&gt; 'checkboxes',
    'weight' =&gt; -4,
  ))
  -&gt;setSetting('allowed_values', $values)
  -&gt;setDisplayConfigurable('form', TRUE);
Try with options_buttons because this is the ID if the OptionsButtonsWidget widget.

$fields['content_display'] = BaseFieldDefinition::create('list_integer')
  -&gt;setDisplayOptions('form', array(
    'type' =&gt; 'options_buttons',
    'weight' =&gt; -4,
  ))
  -&gt;setSetting('allowed_values', $values)
  -&gt;setDisplayConfigurable('form', TRUE);