3 * Contains \Drupal\{{ module }}\Entity\{{ class }}.
6 namespace Drupal\{{ module }}\Entity;
8 use Drupal\Core\Entity\ContentEntityBase;
12 * id = "{{ info.id }}",
13 * label = @Translation("{{ info.label }}"),
15 * "storage" = "{{ info.controllers.storage }}
17 * base_table = "{{ info.base_table }}",
19 * "id" = "{{ info.keys.id }}",
20 {% if info.keys.label %}
21 * "label" = "{{ info.keys.label }}"
26 class {{ class }} extends ContentEntityBase {
30 * Move all logic relating to the {{ info.id }} entity type into this
31 * class. For more information, see https://www.drupal.org/node/1827470.