Reputation: 11
In drupal 8, I create a new entity type with command drupal generate:entity
.
I have a script who generate content entity. It's works.
I can change all information (my fields) in backoffice. But I can't edit the option information (entity_keys): autor, status and date of updated.
How I can show in the backoffice Edit entity the "Option Information" ?
Thanks
Upvotes: 0
Views: 219
Reputation: 11
I found a solution. In the class (namespace Drupal\flora\Entity) of my entity, there is a function baseFieldDefinitions. In this function you can specify which fields to display in the backoffice.
Upvotes: 0