diff --git a/core/lib/Drupal/Core/Field/FormatterInterface.php b/core/lib/Drupal/Core/Field/FormatterInterface.php index a60ffa65f8514984bf7a615cc8588deccbbf7c6a..149438c3e6d028ff2ee6db613b4cebf5e29460d8 100644 --- a/core/lib/Drupal/Core/Field/FormatterInterface.php +++ b/core/lib/Drupal/Core/Field/FormatterInterface.php @@ -39,7 +39,7 @@ public function settingsForm(array $form, FormStateInterface $form_state); * If an empty result is returned, a UI can still be provided to display * a settings form in case the formatter has configurable settings. * - * @return array() + * @return string[] * A short summary of the formatter settings. */ public function settingsSummary(); diff --git a/core/modules/block_content/block_content.module b/core/modules/block_content/block_content.module index 49de8acaa6e2cb2495b4483619c6fe2756859967..74fe9f16823b59743a907e5636d9abbf6e4018a2 100644 --- a/core/modules/block_content/block_content.module +++ b/core/modules/block_content/block_content.module @@ -72,8 +72,8 @@ function block_content_entity_type_alter(array &$entity_types) { * @param string $label * (optional) The label for the body instance. Defaults to 'Body' * - * @return array() - * Body field. + * @return \Drupal\field\Entity\FieldConfig + * A Body field object. */ function block_content_add_body_field($block_type_id, $label = 'Body') { // Add or remove the body field, as needed. diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 182def19fe03d781ba1e873a454ea825d5a8e7cc..8a2498b9a67328c71550cd3d7c48232df6a3f076 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -316,7 +316,8 @@ function node_type_load($name) { * @param string $label * (optional) The label for the body instance. * - * @return \Drupal\field\Entity\FieldConfig Body field. + * @return \Drupal\field\Entity\FieldConfig + * A Body field object. */ function node_add_body_field(NodeTypeInterface $type, $label = 'Body') { // Add or remove the body field, as needed.