Skip to content

Commit

Permalink
GetDKAN#4070: Widget Router code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-korn committed Nov 27, 2023
1 parent 496976a commit 14ce28b
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions modules/json_form_widget/src/WidgetRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ private function formatArrayDefaultValue($item) {
* Handle configuration for list elements.
*
* @param mixed $spec
* Element to convert into list element.
* Object with spec for UI options.
* @param array $element
* Object with spec for UI options.
* Element to convert into list element.
*
* @return array
* The element configured as a list element.
Expand Down Expand Up @@ -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.
* Object with spec for UI options.
* @param array $element
* Object with spec for UI options.
* Element to convert into upload_or_link.
*
* @return array
* The element configured as upload_or_link.
Expand All @@ -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.
* Object with spec for UI options.
* @param array $element
* Object with spec for UI options.
* Element to convert into textarea.
*
* @return array
* The element configured as textarea.
Expand All @@ -320,9 +320,9 @@ public function handleTextareaElement($spec, array $element) {
* Helper function for hiding an element.
*
* @param mixed $spec
* Element to convert into hidden.
* Object with spec for UI options.
* @param array $element
* Object with spec for UI options.
* Element to convert into hidden.
*
* @return array
* The element configured as hidden.
Expand All @@ -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.
* Object with spec for UI options.
* @param array $element
* Object with spec for UI options.
* Element to convert into dkan_uuid.
*
* @return array
* The element configured as dkan_uuid.
Expand All @@ -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.
* Object with spec for UI options.
* @param array $element
* Object with spec for UI options.
* Element to convert into date.
*
* @return array
* The element configured as date.
Expand All @@ -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.
* Object with spec for UI options.
* @param array $element
* Object with spec for UI options.
* 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';
Expand All @@ -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.
* Object with spec for UI options.
* @param array $element
* Object with spec for UI options.
* Element to convert into date_range.
*
* @return array
* The element configured as date_range.
Expand Down

0 comments on commit 14ce28b

Please sign in to comment.