Skip to content

Commit e0a77a3

Browse files
author
Dominic Tubach
committed
fixup! Use custom options to specify how array items are displayed
1 parent d74de1e commit e0a77a3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Form/Control/ArrayArrayFactory.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,13 @@ private function createLayoutDefinition(ArrayControlDefinition $definition): Arr
220220
if (isset($detail->type) || isset($detail->elements)) {
221221
// phpcs:disable Drupal.Semantics.FunctionTriggerError.TriggerErrorTextLayoutRelaxed
222222
@trigger_error(<<<EOD
223-
The properties "type" and "elements" in option "detail" of an array control are
224-
deprecated and were never supported in accordance to the JSON Forms
225-
documentation. Use the options "itemLayout" and "elements" instead.
226-
EOD,
227-
E_USER_DEPRECATED);
223+
The properties "type" and "elements" in option "detail" of an array
224+
control are deprecated and were never supported in accordance to the
225+
JSON Forms documentation. Use the options "itemLayout" and "elements"
226+
instead.
227+
EOD,
228+
E_USER_DEPRECATED
229+
);
228230
// phpcs:enable
229231
}
230232

0 commit comments

Comments
 (0)