src/Ui/ControlPanel/Component/Button/ButtonNormalizer.php 1 location
|
@@ 81-85 (lines=5) @@
|
| 78 |
|
* Move all data-* keys |
| 79 |
|
* to attributes. |
| 80 |
|
*/ |
| 81 |
|
foreach ($button as $attribute => $value) { |
| 82 |
|
if (str_is('data-*', $attribute)) { |
| 83 |
|
array_set($button, 'attributes.' . $attribute, array_pull($button, $attribute)); |
| 84 |
|
} |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
/* |
| 88 |
|
* Make sure the HREF is absolute. |
src/Ui/ControlPanel/Component/Navigation/NavigationNormalizer.php 1 location
|
@@ 53-57 (lines=5) @@
|
| 50 |
|
* Move all data-* keys |
| 51 |
|
* to attributes. |
| 52 |
|
*/ |
| 53 |
|
foreach ($link as $attribute => $value) { |
| 54 |
|
if (str_is('data-*', $attribute)) { |
| 55 |
|
array_set($link, 'attributes.' . $attribute, array_pull($link, $attribute)); |
| 56 |
|
} |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
/* |
| 60 |
|
* Make sure the HREF is absolute. |
src/Ui/Form/Component/Action/ActionNormalizer.php 1 location
|
@@ 97-101 (lines=5) @@
|
| 94 |
|
* Move all data-* keys |
| 95 |
|
* to attributes. |
| 96 |
|
*/ |
| 97 |
|
foreach ($action as $attribute => $value) { |
| 98 |
|
if (str_is('data-*', $attribute)) { |
| 99 |
|
array_set($action, 'attributes.' . $attribute, array_pull($action, $attribute)); |
| 100 |
|
} |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
/* |
| 104 |
|
* If the HREF is present outside of the attributes |
src/Ui/Form/Component/Button/ButtonNormalizer.php 1 location
|
@@ 76-80 (lines=5) @@
|
| 73 |
|
* Move all data-* keys |
| 74 |
|
* to attributes. |
| 75 |
|
*/ |
| 76 |
|
foreach ($button as $attribute => $value) { |
| 77 |
|
if (str_is('data-*', $attribute)) { |
| 78 |
|
array_set($button, 'attributes.' . $attribute, array_pull($button, $attribute)); |
| 79 |
|
} |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
/* |
| 83 |
|
* Make sure the HREF is absolute. |
src/Ui/Table/Component/Action/ActionNormalizer.php 1 location
|
@@ 95-99 (lines=5) @@
|
| 92 |
|
* Move all data-* keys |
| 93 |
|
* to attributes. |
| 94 |
|
*/ |
| 95 |
|
foreach ($action as $attribute => $value) { |
| 96 |
|
if (str_is('data-*', $attribute)) { |
| 97 |
|
array_set($action, 'attributes.' . $attribute, array_pull($action, $attribute)); |
| 98 |
|
} |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
/* |
| 102 |
|
* If the HREF is present outside of the attributes |
src/Ui/Table/Component/Button/ButtonNormalizer.php 1 location
|
@@ 86-90 (lines=5) @@
|
| 83 |
|
* Move all data-* keys |
| 84 |
|
* to attributes. |
| 85 |
|
*/ |
| 86 |
|
foreach ($button as $attribute => $value) { |
| 87 |
|
if (str_is('data-*', $attribute)) { |
| 88 |
|
array_set($button, 'attributes.' . $attribute, array_pull($button, $attribute)); |
| 89 |
|
} |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
/* |
| 93 |
|
* Make sure the HREF is absolute. |
src/Ui/Tree/Component/Button/ButtonNormalizer.php 1 location
|
@@ 68-72 (lines=5) @@
|
| 65 |
|
* Move all data-* keys |
| 66 |
|
* to attributes. |
| 67 |
|
*/ |
| 68 |
|
foreach ($button as $attribute => $value) { |
| 69 |
|
if (str_is('data-*', $attribute)) { |
| 70 |
|
array_set($button, 'attributes.' . $attribute, array_pull($button, $attribute)); |
| 71 |
|
} |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
/* |
| 75 |
|
* Make sure the HREF is absolute. |
src/Ui/Tree/Component/Segment/SegmentNormalizer.php 1 location
|
@@ 64-68 (lines=5) @@
|
| 61 |
|
* Move all data-* keys |
| 62 |
|
* to attributes. |
| 63 |
|
*/ |
| 64 |
|
foreach ($segment as $attribute => $value) { |
| 65 |
|
if (str_is('data-*', $attribute)) { |
| 66 |
|
array_set($segment, 'attributes.' . $attribute, array_pull($segment, $attribute)); |
| 67 |
|
} |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
/* |
| 71 |
|
* If no value wrap is set |
src/Ui/ControlPanel/Component/Section/SectionNormalizer.php 1 location
|
@@ 96-100 (lines=5) @@
|
| 93 |
|
* Move all data-* keys |
| 94 |
|
* to attributes. |
| 95 |
|
*/ |
| 96 |
|
foreach ($section as $attribute => $value) { |
| 97 |
|
if (str_is('data-*', $attribute)) { |
| 98 |
|
array_set($section, 'attributes.' . $attribute, array_pull($section, $attribute)); |
| 99 |
|
} |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
/* |
| 103 |
|
* Move the data-href into the permalink. |
src/Ui/Form/Component/Section/SectionNormalizer.php 1 location
|
@@ 49-53 (lines=5) @@
|
| 46 |
|
* Move all data-* keys |
| 47 |
|
* to attributes. |
| 48 |
|
*/ |
| 49 |
|
foreach ($section as $attribute => $value) { |
| 50 |
|
if (str_is('data-*', $attribute)) { |
| 51 |
|
array_set($section, 'attributes.' . $attribute, array_pull($section, $attribute)); |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
$builder->setSections($sections); |