diff --git a/core/lib/Drupal/Core/Field/BaseFieldDefinition.php b/core/lib/Drupal/Core/Field/BaseFieldDefinition.php index 3e07244..4a8e4fa 100644 --- a/core/lib/Drupal/Core/Field/BaseFieldDefinition.php +++ b/core/lib/Drupal/Core/Field/BaseFieldDefinition.php @@ -265,6 +265,10 @@ public function getCardinality() { * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * + * Note that if the entity type that this base field is attached to is + * revisionable and the field has a cardinality higher than 1, the field is + * considered revisionable by default. + * * @param int $cardinality * The field cardinality. * diff --git a/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php b/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php index 9331d94..d3711f7 100644 --- a/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php +++ b/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php @@ -97,7 +97,11 @@ public function isTranslatable(); public function setTranslatable($translatable); /** - * Returns whether the field is revisionable. + * Returns whether the field storage is revisionable. + * + * Note that if the entity type is revisionable and the field storage has a + * cardinality higher than 1, the field storage is considered revisionable + * by default. * * @return bool * TRUE if the field is revisionable.