ConfigEntityType.php 929 Bytes
Newer Older
1
2
3
4
5
6
7
8
<?php

/**
 * @file
 * Contains \Drupal\Core\Entity\Annotation\ConfigEntityType.
 */

namespace Drupal\Core\Entity\Annotation;
9

10
use Drupal\Core\StringTranslation\TranslatableMarkup;
11
12
13
14

/**
 * Defines a config entity type annotation object.
 *
15
 * The annotation properties of entity types are found on
16
 * \Drupal\Core\Config\Entity\ConfigEntityType and are accessed using
17
18
19
20
 * get/set methods defined in \Drupal\Core\Entity\EntityTypeInterface.
 *
 * @ingroup entity_api
 *
21
22
23
24
25
26
27
28
29
 * @Annotation
 */
class ConfigEntityType extends EntityType {

  /**
   * {@inheritdoc}
   */
  public $entity_type_class = 'Drupal\Core\Config\Entity\ConfigEntityType';

30
31
32
33
34
35
36
37
38
  /**
   * {@inheritdoc}
   */
  public $group = 'configuration';

  /**
   * {@inheritdoc}
   */
  public function get() {
39
    $this->definition['group_label'] = new TranslatableMarkup('Configuration', array(), array('context' => 'Entity type group'));
40
41
42
43

    return parent::get();
  }

44
}