3 namespace Drupal\Core\Entity\Annotation;
4 use Drupal\Core\StringTranslation\TranslatableMarkup;
7 * Defines a content entity type annotation object.
9 * Content Entity type plugins use an object-based annotation method, rather than an
10 * array-type annotation method (as commonly used on other annotation types).
11 * The annotation properties of content entity types are found on
12 * \Drupal\Core\Entity\ContentEntityType and are accessed using
13 * get/set methods defined in \Drupal\Core\Entity\ContentEntityTypeInterface.
19 class ContentEntityType extends EntityType {
24 public $entity_type_class = 'Drupal\Core\Entity\ContentEntityType';
29 public $group = 'content';
34 public function get() {
35 $this->definition['group_label'] = new TranslatableMarkup('Content', [], ['context' => 'Entity type group']);