add {{ label|lower }} entities:
  title: 'Create new {{ label }} entities'

administer {{ label|lower }} entities:
  title: 'Administer {{ label }} entities'
  description: 'Allow to access the administration form to configure {{ label }} entities.'
  restrict access: true

delete {{ label|lower }} entities:
  title: 'Delete {{ label }} entities'

edit {{ label|lower }} entities:
  title: 'Edit {{ label }} entities'

view published {{ label|lower }} entities:
  title: 'View published {{ label }} entities'

view unpublished {{ label|lower }} entities:
  title: 'View unpublished {{ label }} entities'
{% if revisionable %}

view all {{ label|lower }} revisions:
  title: 'View all {{ label }} revisions'

revert all {{ label|lower }} revisions:
  title: 'Revert all {{ label }} revisions'
  description: 'Role requires permission <em>view {{ label }} revisions</em> and <em>edit rights</em> for {{ label|lower }} entities in question or <em>administer {{ label|lower }} entities</em>.'

delete all {{ label|lower }} revisions:
  title: 'Delete all revisions'
  description: 'Role requires permission to <em>view {{ label }} revisions</em> and <em>delete rights</em> for {{ label|lower }} entities in question or <em>administer {{ label|lower }} entities</em>.'
{% endif %}

{% if has_bundle_permissions %}
permission_callbacks:
  - \Drupal\{{ module }}\{{ entity_class}}Permissions::generatePermissions
{% endif %}
