diff --git a/modules/json_form_widget/src/WidgetRouter.php b/modules/json_form_widget/src/WidgetRouter.php index 3fc57ae694..d30ec7f51a 100644 --- a/modules/json_form_widget/src/WidgetRouter.php +++ b/modules/json_form_widget/src/WidgetRouter.php @@ -140,9 +140,9 @@ private function formatArrayDefaultValue($item) { * Handle configuration for list elements. * * @param mixed $spec - * Element to convert into list element. - * @param array $element * Object with spec for UI options. + * @param array $element + * Element to convert into list element. * * @return array * The element configured as a list element. @@ -274,9 +274,9 @@ private function handleSelectOtherDefaultValue($element, $options) { * Handle configuration for upload_or_link elements. * * @param mixed $spec - * Element to convert into upload_or_link. - * @param array $element * Object with spec for UI options. + * @param array $element + * Element to convert into upload_or_link. * * @return array * The element configured as upload_or_link. @@ -298,9 +298,9 @@ public function handleUploadOrLinkElement($spec, array $element) { * Helper function for getting a textarea element. * * @param mixed $spec - * Element to convert into textarea. - * @param array $element * Object with spec for UI options. + * @param array $element + * Element to convert into textarea. * * @return array * The element configured as textarea. @@ -320,9 +320,9 @@ public function handleTextareaElement($spec, array $element) { * Helper function for hiding an element. * * @param mixed $spec - * Element to convert into hidden. - * @param array $element * Object with spec for UI options. + * @param array $element + * Element to convert into hidden. * * @return array * The element configured as hidden. @@ -336,9 +336,9 @@ public function handleHiddenElement($spec, array $element) { * Helper function for getting a dkan_uuid element. * * @param mixed $spec - * Element to convert into hidden. - * @param array $element * Object with spec for UI options. + * @param array $element + * Element to convert into dkan_uuid. * * @return array * The element configured as dkan_uuid. @@ -353,9 +353,9 @@ public function handleDkanUuidElement($spec, array $element) { * Helper function for getting a date element. * * @param mixed $spec - * Element to convert into hidden. - * @param array $element * Object with spec for UI options. + * @param array $element + * Element to convert into date. * * @return array * The element configured as date. @@ -375,12 +375,12 @@ public function handleDateElement($spec, array $element) { * Helper function for getting a datetime element. * * @param mixed $spec - * Element to convert into hidden. - * @param array $element * Object with spec for UI options. + * @param array $element + * Element to convert into datetime. * * @return array - * The element configured as date. + * The element configured as datetime. */ public function handleDatetimeElement($spec, array $element) { $element['#type'] = 'flexible_datetime'; @@ -398,9 +398,9 @@ public function handleDatetimeElement($spec, array $element) { * Helper function for getting a date_range element. * * @param mixed $spec - * Element to convert into date_range. - * @param array $element * Object with spec for UI options. + * @param array $element + * Element to convert into date_range. * * @return array * The element configured as date_range.