diff --git a/core/lib/Drupal/Core/Field/WidgetInterface.php b/core/lib/Drupal/Core/Field/WidgetInterface.php index c4e70225e2ffe66abf6549a971931a656b4afc73..feb5d9aa01ec6ea8f0144bed4a8d46bed04523fd 100644 --- a/core/lib/Drupal/Core/Field/WidgetInterface.php +++ b/core/lib/Drupal/Core/Field/WidgetInterface.php @@ -76,7 +76,7 @@ public function settingsSummary(); * @param \Drupal\Core\Field\FieldItemListInterface $items * Array of default values for this field. * @param int $delta - * The order of this item in the array of subelements (0, 1, 2, etc). + * The order of this item in the array of sub-elements (0, 1, 2, etc). * @param array $element * A form element array containing basic properties for the widget: * - #field_parents: The 'parents' space for the field in the form. Most @@ -92,12 +92,12 @@ public function settingsSummary(); * - #required: A Boolean indicating whether the element value is required; * for required multiple value fields, only the first widget's values are * required. - * - #delta: The order of this item in the array of subelements; see $delta + * - #delta: The order of this item in the array of sub-elements; see $delta * above. - * @param string $form + * @param array $form * The form structure where widgets are being attached to. This might be a * full form structure, or a sub-element of a larger form. - * @param string $form_state + * @param array $form_state * An associative array containing the current state of the form. * * @return array