1. 8.2.x core/lib/Drupal/Core/Entity/ContentEntityType.php
  2. 8.2.x core/lib/Drupal/Core/Entity/Annotation/ContentEntityType.php
  3. 8.0.x core/lib/Drupal/Core/Entity/Annotation/ContentEntityType.php
  4. 8.0.x core/lib/Drupal/Core/Entity/ContentEntityType.php
  5. 8.1.x core/lib/Drupal/Core/Entity/Annotation/ContentEntityType.php
  6. 8.1.x core/lib/Drupal/Core/Entity/ContentEntityType.php
  7. 8.3.x core/lib/Drupal/Core/Entity/Annotation/ContentEntityType.php
  8. 8.3.x core/lib/Drupal/Core/Entity/ContentEntityType.php

Namespace

Drupal\Core\Entity\Annotation

File

core/lib/Drupal/Core/Entity/Annotation/ContentEntityType.php
View source
  1. <?php
  2. namespace Drupal\Core\Entity\Annotation;
  3. use Drupal\Core\StringTranslation\TranslatableMarkup;
  4. /**
  5. * Defines a content entity type annotation object.
  6. *
  7. * Content Entity type plugins use an object-based annotation method, rather than an
  8. * array-type annotation method (as commonly used on other annotation types).
  9. * The annotation properties of content entity types are found on
  10. * \Drupal\Core\Entity\ContentEntityType and are accessed using
  11. * get/set methods defined in \Drupal\Core\Entity\ContentEntityTypeInterface.
  12. *
  13. * @ingroup entity_api
  14. *
  15. * @Annotation
  16. */
  17. class ContentEntityType extends EntityType {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public $entity_type_class = 'Drupal\Core\Entity\ContentEntityType';
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public $group = 'content';
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function get() {
  30. $this->definition['group_label'] = new TranslatableMarkup('Content', array(), array('context' => 'Entity type group'));
  31. return parent::get();
  32. }
  33. }

Classes

Namesort descending Description
ContentEntityType Defines a content entity type annotation object.