Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Annotation / ContentEntityType.php
1 <?php
2
3 namespace Drupal\Core\Entity\Annotation;
4
5 use Drupal\Core\StringTranslation\TranslatableMarkup;
6
7 /**
8  * Defines a content entity type annotation object.
9  *
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.
15  *
16  * @ingroup entity_api
17  *
18  * @Annotation
19  */
20 class ContentEntityType extends EntityType {
21
22   /**
23    * {@inheritdoc}
24    */
25   public $entity_type_class = 'Drupal\Core\Entity\ContentEntityType';
26
27   /**
28    * {@inheritdoc}
29    */
30   public $group = 'content';
31
32   /**
33    * {@inheritdoc}
34    */
35   public function get() {
36     $this->definition['group_label'] = new TranslatableMarkup('Content', [], ['context' => 'Entity type group']);
37
38     return parent::get();
39   }
40
41 }