Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4070: Widget Router code documentation #4071

Merged
merged 2 commits into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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