Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Annotation / ConfigEntityType.php
1 <?php
2
3 namespace Drupal\Core\Entity\Annotation;
4
5 use Drupal\Core\StringTranslation\TranslatableMarkup;
6
7 /**
8  * Defines a config entity type annotation object.
9  *
10  * The annotation properties of entity types are found on
11  * \Drupal\Core\Config\Entity\ConfigEntityType and are accessed using
12  * get/set methods defined in \Drupal\Core\Entity\EntityTypeInterface.
13  *
14  * @ingroup entity_api
15  *
16  * @Annotation
17  */
18 class ConfigEntityType extends EntityType {
19
20   /**
21    * {@inheritdoc}
22    */
23   public $entity_type_class = 'Drupal\Core\Config\Entity\ConfigEntityType';
24
25   /**
26    * {@inheritdoc}
27    */
28   public $group = 'configuration';
29
30   /**
31    * {@inheritdoc}
32    */
33   public function get() {
34     $this->definition['group_label'] = new TranslatableMarkup('Configuration', [], ['context' => 'Entity type group']);
35
36     return parent::get();
37   }
38
39 }