3 namespace Drupal\{{ machine_name }}\Entity;
5 use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
8 * Defines the {{ entity_type_label }} type configuration entity.
11 * id = "{{ entity_type_id }}_type",
12 * label = @Translation("{{ entity_type_label }} type"),
15 * "add" = "Drupal\{{ machine_name }}\Form\{{ class_prefix }}TypeForm",
16 * "edit" = "Drupal\{{ machine_name }}\Form\{{ class_prefix }}TypeForm",
17 * "delete" = "Drupal\Core\Entity\EntityDeleteForm",
19 * "list_builder" = "Drupal\{{ machine_name }}\{{ class_prefix }}TypeListBuilder",
20 * "route_provider" = {
21 * "html" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider",
24 * admin_permission = "administer {{ entity_type_label|lower }} types",
25 * bundle_of = "{{ entity_type_id }}",
26 * config_prefix = "{{ entity_type_id }}_type",
33 * "add-form" = "/admin/structure/{{ entity_type_id }}_types/add",
34 * "edit-form" = "/admin/structure/{{ entity_type_id }}_types/manage/{{ '{' ~ entity_type_id ~ '_type}' }}",
35 * "delete-form" = "/admin/structure/{{ entity_type_id }}_types/manage/{{ '{' ~ entity_type_id ~ '_type}' }}/delete",
36 * "collection" = "/admin/structure/{{ entity_type_id }}_types"
45 class {{ class_prefix }}Type extends ConfigEntityBundleBase {
48 * The machine name of this {{ entity_type_label|lower }} type.
55 * The human-readable name of the {{ entity_type_label|lower }} type.