I've created a custom content entity type in Drupal 8. I've tied it in with the Field UI so it can be fielded, and I added some fields in the entity definition using BaseFieldDefinition.
One of the fields I added was this:
$fields['message'] = BaseFieldDefinition::create('text_long') ->setLabel(t('Message')) ->setDescription(t('The message to be shown')) ->setTranslatable(FALSE) ->setRevisionable(FALSE) ->setDisplayOptions('view', array( 'label' => 'hidden', 'type' => 'text_default', 'weight' => 0, )) ->setDisplayConfigurable('view', TRUE) ->setDisplayOptions('form', array( 'type' => 'text_textfield', 'weight' => 0, )) ->setDisplayConfigurable('form', TRUE);
I want to set a default Text Format for this field, however I'm not sure how to do so. I don't know if I can do it in the code above, but I'm thinking that if I could edit the field settings on the 'Manage Fields' tab, I could do it there. However, I can't figure out how to get my field to show up on that page. It shows up on the 'Manage Form' and 'Manage Display' tab, but not the 'Manage Fields' tab.
Does anyone know how to either get it to show up on that tab, or how to set the default text format on this field?