I have generated a custom entity using Drupal Console.
drupal generate:entity:content
The entity doesn’t have the permission edit own content
which we usually have in node types etc… The entities entity_name.permissions.yml
the file has the following enteries.
add company entities: title: 'Create new Company entities' administer company entities: title: 'Administer Company entities' description: 'Allow to access the administration form to configure Company entities.' restrict access: true delete company entities: title: 'Delete Company entities' edit company entities: title: 'Edit Company entities' access company overview: title: 'Access the Company overview page' view published company entities: title: 'View published Company entities' view unpublished company entities: title: 'View unpublished Company entities'
I tried understanding, how this is done in node. But in node types permission file also I couldn’t find this permission entered.
Sponsored by SupremePR