diff --git a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php index df456ea..310062f 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php @@ -264,12 +264,11 @@ public function getExportProperties() { /** * Overrides \Drupal\Core\Entity\Entity::save(). * - * @return + * @return int * Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed. * * @throws \Drupal\field\FieldException * If the field definition is invalid. - * * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ @@ -288,12 +287,11 @@ public function save() { /** * Saves a new field definition. * - * @return + * @return int * SAVED_NEW if the definition was saved. * * @throws \Drupal\field\FieldException * If the field definition is invalid. - * * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ @@ -375,12 +373,11 @@ protected function saveNew() { /** * Saves an updated field definition. * - * @return + * @return int * SAVED_UPDATED if the definition was saved. * * @throws \Drupal\field\FieldException * If the field definition is invalid. - * * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ @@ -401,9 +398,9 @@ protected function saveUpdated() { throw new FieldException("Cannot change an existing field's storage type."); } - // Make sure all settings are present, so that a complete field - // definition is saved. This allows calling code to perform partial - // updates on a field object. + // Make sure all settings are present, so that a complete field definition + // is saved. This allows calling code to perform partial updates on field + // objects. $this->settings += $original->settings; $has_data = field_has_data($this);