ConfigEntityType.php 840 B

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