Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 72795

Use it for questions about rendering or modifying the HTML markup produced by a module/theme.

2 votes
0 answers
1k views

Get the node ID from the path alias [duplicate]

What is reliable way to get the node id from the path alias in Drupal 8?
Vishal Kumar Sahu's user avatar
0 votes
1 answer
5k views

Getting index of item in items inside twig template

If I use any loop in Drupal, I can get loop.index to get the index of looped item. - Ref#1 For example - {% for tag in content.some_array %} <div class="item-count-{{loop.index}}">{{ tag.c …
Vishal Kumar Sahu's user avatar
0 votes

Getting values on twig node template

I will go for render option and use the template instead of manually accessing values. Alternatively, you can go for custom twig functions or filters to access referenced field values.
Vishal Kumar Sahu's user avatar