Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
label_help
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
label_help
Merge requests
!11
Issue
#3450149
by jwilson3: Fix OOM issue with label_help_debug
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3450149
by jwilson3: Fix OOM issue with label_help_debug
issue/label_help-3450149:3450149-debug-oom
into
2.0.x
Overview
0
Commits
2
Pipelines
3
Changes
2
Merged
James Wilson
requested to merge
issue/label_help-3450149:3450149-debug-oom
into
2.0.x
1 year ago
Overview
0
Commits
2
Pipelines
3
Changes
2
Expand
Closes
#3450149
0
0
Merge request reports
Compare
2.0.x
version 2
ecc32f91
1 year ago
version 1
9eb02f36
1 year ago
2.0.x (base)
and
latest version
latest version
ecc32f91
2 commits,
1 year ago
version 2
ecc32f91
2 commits,
1 year ago
version 1
9eb02f36
1 commit,
1 year ago
2 files
+
96
−
55
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
README.md
+
20
−
3
Options
@@ -31,11 +31,28 @@ This module requires no modules outside of Drupal core.
## Troubleshooting
If a given field or widget type is not behaving like you would expect, you can
enable debug mode in settings.php with the following line:
1.
Label Help placement logic 'use case' debugging.
$settings['label_help_debug'] = TRUE;
If a given field or widget type is not behaving as expected, enable debug
mode in settings.php with the following line:
$settings['label_help_debug'] = TRUE;
Then reload the form page to see debug output identifying the field widget
type and use case matched by Label Help placement logic. If no use case is
detected you'll see a warning message.
2.
Form API dump debugging
To troubleshoot Form API structures for a given form field enable the Form
API element dump mode in settings.php with the following line:
$settings['label_help_debug_dump'] = TRUE;
This debug mode leverages the Symfony Variable Dumper `dump()` to provide
a drillable screen dump of the Form API element array. However, because
this dump runs inside the form_alter, it can result in incomplete page
load. This is expected.
## Using Label Help to create form fields programmatically
Loading