summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Entity/EntityTypeInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib/Drupal/Core/Entity/EntityTypeInterface.php')
-rw-r--r--core/lib/Drupal/Core/Entity/EntityTypeInterface.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php
index ec61644..e2ba2a9 100644
--- a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php
+++ b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php
@@ -105,12 +105,15 @@ interface EntityTypeInterface {
* entry can be omitted if this entity type exposes a single bundle (such
* that all entities have the same collection of fields). The name of this
* single bundle will be the same as the entity type.
- * - label: The name of the property that contains the entity label. For
- * example, if the entity's label is located in $entity->subject, then
- * 'subject' should be specified here. If complex logic is required to
- * build the label, a 'label_callback' should be defined instead (see the
- * $label_callback block above for details).
- * - uuid (optional): The name of the property that contains the universally
+ * - label: (optional) The name of the property that contains the entity
+ * label. For example, if the entity's label is located in
+ * $entity->subject, then 'subject' should be specified here. If complex
+ * logic is required to build the label, a 'label_callback' should be
+ * defined instead (see the $label_callback block above for details).
+ * - langcode: (optional) The name of the property that contains the
+ * language code. For instance, if the entity's language is located in
+ * $entity->langcode, then 'langcode' should be specified here.
+ * - uuid: (optional) The name of the property that contains the universally
* unique identifier of the entity, which is used to distinctly identify
* an entity across different systems.
*/