You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core-php/src/Utils.php
+15-17Lines changed: 15 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -182,7 +182,7 @@ public static function isRemoteUrl($url) {
182
182
}
183
183
184
184
/**
185
-
* Check that schema "type" does not equal "array" or "object", nor does it contain an array with either of those values
185
+
* Check that schema "type" does not equal "array" or "object", nor does it contain an array with either of those values.
186
186
* @param string|array $type - The schema "type" value, can be passed as string or array
187
187
* @return boolean - Returns true if "type" is allowed, i.e. no "array" or "object" values
188
188
*/
@@ -192,39 +192,37 @@ public static function isAllowedSchemaType($type) {
192
192
}
193
193
}
194
194
195
-
196
195
/**
197
-
* Build an array of props, filter out any props that are not in the schema
196
+
* Build an array of props by checking Twig "_context" against the schema, only returns top-level schema props. By default prop keys are converted to kebab-case.
198
197
* @param array $items - Twig "_context", all the available template variables
199
198
* @param array $schema - The schema object for a particular component
199
+
* @param boolean $isInternal - If true default schema values are included in returned array and keys converted to snake_case
0 commit comments