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

Defines a content entity type annotation object.

Content Entity type plugins use an object-based annotation method, rather than an array-type annotation method (as commonly used on other annotation types). The annotation properties of content entity types are found on \Drupal\Core\Entity\ContentEntityType and are accessed using get/set methods defined in \Drupal\Core\Entity\ContentEntityTypeInterface.

Hierarchy

Expanded class hierarchy of ContentEntityType

Related topics

38 classes are annotated with ContentEntityType
Comment in core/modules/comment/src/Entity/Comment.php
Defines the comment entity class.
EntityTest in core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php
Defines the test entity class.
EntityTestAdminRoutes in core/modules/system/tests/modules/entity_test/src/Entity/EntityTestAdminRoutes.php
Defines a test entity type with administrative routes.
EntityTestBaseFieldDisplay in core/modules/system/tests/modules/entity_test/src/Entity/EntityTestBaseFieldDisplay.php
Defines a test entity class for base fields display.
EntityTestCache in core/modules/system/tests/modules/entity_test/src/Entity/EntityTestCache.php
Defines the test entity class.

... See full list

File

core/lib/Drupal/Core/Entity/Annotation/ContentEntityType.php, line 24
Contains \Drupal\Core\Entity\Annotation\ContentEntityType.

Namespace

Drupal\Core\Entity\Annotation
View source
class ContentEntityType extends EntityType {

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

  /**
   * {@inheritdoc}
   */
  public $group = 'content';

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

    return parent::get();
  }

}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
ContentEntityType::$entity_type_class public property The class used to represent the entity type. Overrides EntityType::$entity_type_class
ContentEntityType::$group public property The group machine name. Overrides EntityType::$group
ContentEntityType::get public function Gets the value of an annotation. Overrides EntityType::get
EntityType::$group_label public property The group label.
Plugin::$definition protected property The plugin definition read from the class annotation.
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object.
StringTranslationTrait::$stringTranslation protected property The string translation service.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.