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