Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!12188
Create GitLab patch
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Create GitLab patch
issue/drupal-3302129:3302129-views-view-field.html.twig-contains-a
into
11.x
Overview
1
Commits
1
Pipelines
1
Changes
2
Open
ressa
requested to merge
issue/drupal-3302129:3302129-views-view-field.html.twig-contains-a
into
11.x
2 weeks ago
Overview
1
Commits
1
Pipelines
1
Changes
2
Expand
Closes
#3302129
0
0
Merge request reports
Compare
11.x
11.x (HEAD)
and
latest version
latest version
74fec6ea
1 commit,
2 weeks ago
2 files
+
8
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
core/modules/views/templates/views-view-field.html.twig
+
4
−
2
Options
@@ -9,8 +9,10 @@
* - row: The raw result of the database query that generated this field.
* - output: The processed output that will normally be used.
*
* When fetching output from the row this construct should be used:
* data = row[field.field_alias]
* To fetch values of other fields in the row, where [0] gets the first value:
* view.field.title.original_value
* row._entity.field_my_field.value
* row._entity.field_my_field[0].value
*
* The above will guarantee that you'll always get the correct data, regardless
* of any changes in the aliasing that might happen if the view is modified.
Loading