Skip to content

Commit

Permalink
#4070: Widget Router code documentation (#4071)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-korn authored Nov 27, 2023
1 parent 0dc1a33 commit 91ef1b5
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.
* @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.
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.
* @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.
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.
* @param array $element
* Object with spec for UI options.
* @param array $element
* 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.
* @param array $element
* Object with spec for UI options.
* @param array $element
* 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.
* @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.
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.
* @param array $element
* Object with spec for UI options.
* @param array $element
* 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.
* @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';
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.
* @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.
Expand Down

0 comments on commit 91ef1b5

Please sign in to comment.