MCQs > IT & Programming > Drupal > Which of the following is the correct syntax to loop through items in a list in Twig template?

Drupal MCQs

Which of the following is the correct syntax to loop through items in a list in Twig template?

Answer

Correct Answer: <ul class="links field__items"> {% for item in items %} <li {{ item.attributes }} > {{ item.content }} </li> {% endfor %} </ul>

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Drupal Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Drupal Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it