Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsx
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
jsx
Merge requests
!10
Resolve
#3407970
"Jsx debug expects"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve
#3407970
"Jsx debug expects"
issue/jsx-3407970:3407970-jsx-debug-expects
into
1.0.x
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Resolve #3407970 "Jsx debug expects"
Ben Mullins
requested to merge
issue/jsx-3407970:3407970-jsx-debug-expects
into
1.0.x
Dec 11, 2023
Overview
0
Commits
2
Pipelines
0
Changes
1
Closes
#3407970
0
0
Merge request reports
Compare
1.0.x
version 1
b6e9219e
Dec 11, 2023
1.0.x (base)
and
latest version
latest version
4eba910f
2 commits,
Dec 11, 2023
version 1
b6e9219e
2 commits,
Dec 11, 2023
1 file
+
3
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/jsx_devel/src/JsxDebugUtility.php
+
3
−
2
View file @ 4eba910f
Edit in single-file editor
Open in Web IDE
Show full file
@@ -35,7 +35,7 @@ class JsxDebugUtility {
/**
* Associates custom elements rendered by the JSX engine to debug data.
*
* @param array $value
* @param array
|object
$value
* The custom element render array.
* @param $filename
* The file name of the template being rendered.
@@ -43,7 +43,8 @@ class JsxDebugUtility {
* A unique ID for associating this element with a debug data available
* in JavaScript.
*/
static
public
function
addJsxDebugInfo
(
array
&
$value
,
string
$filename
,
string
$uuid
):
void
{
static
public
function
addJsxDebugInfo
(
array
|
object
&
$value
,
string
$filename
,
string
$uuid
):
void
{
$value
=
(
array
)
$value
;
$value
[
'data-drupal-prop-info'
]
=
$uuid
;
$value
[
'data-drupal-jsx-template'
]
=
$filename
;
}
Loading