diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php index 14f306f..c6ff65c 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php @@ -477,14 +477,7 @@ public function getFieldDefinitions() { } /** - * Returns an array of all property values. - * - * Gets an array of plain property or field values, including only - * non-computed values. Note that the structure varies by entity type and - * bundle. - * - * @return array - * An array of property values, keyed by property name. + * {@inheritdoc} */ public function toArray() { $values = array(); diff --git a/core/lib/Drupal/Core/Entity/ContentEntityInterface.php b/core/lib/Drupal/Core/Entity/ContentEntityInterface.php index dee43a0..78ee18c 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityInterface.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityInterface.php @@ -124,4 +124,16 @@ public function getFieldDefinition($name); */ public function getFieldDefinitions(); + /** + * Returns an array of all field values. + * + * Gets an array of plain property or field values, including only + * non-computed values. Note that the structure varies by entity type and + * bundle. + * + * @return array + * An array of field values, keyed by field name. + */ + public function toArray(); + }