Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / module / content-entity / model.links.menu.yml.twig
index 180b2cbee0c52b90be03bdb231473be4e689f511..e5803fa487a203595f682cd85a5ec18385b1c1e1 100755 (executable)
@@ -1,12 +1,18 @@
-{% if fieldable %}
+{% if fieldable_no_bundle %}
 entity.{{ entity_type_id }}.settings:
   title: {{ entity_type_label }}
   description: Configure {{ entity_type_label|article }} entity type
   route_name:  entity.{{ entity_type_id }}.settings
   parent: system.admin_structure
-{% endif %}
 entity.{{ entity_type_id }}.collection:
   title: {{ entity_type_label|plural }}
   description: List of {{ entity_type_label|plural|lower }}
   route_name: entity.{{ entity_type_id }}.collection
   parent: system.admin_content
+{% elseif bundle %}
+entity.{{ entity_type_id }}_type.collection:
+  title: '{{ entity_type_label }} types'
+  parent: system.admin_structure
+  description: 'Manage and CRUD actions on {{ entity_type_label }} type.'
+  route_name: entity.{{ entity_type_id }}_type.collection
+{% endif %}