title: Access "item" label from within a "field" template in Drupal 8
body: <p>I have a field that contains a number of nodes that should be rendered as tabs.</p>
  
  <p>The markup consists of the tab controls followed by the tab content.
  I have an overridden <code>field</code> template that renders:</p>
  
  <pre><code>{# Tab controls #}
  &lt;dl class="tabs"&gt;
  {% for item in items %}
    &lt;dd&gt;&lt;a&gt;Insert tab label here&lt;/a&gt;&lt;/dd&gt;
  {% endfor %}
  &lt;/dl&gt;
  
  {# Tab content #}
  &lt;div class="tabs-content"&gt;
  {% for item in items %}
    &lt;div{{ attributes }}&gt;
      {{ item.content }}
    &lt;/div&gt;
  {% endfor %}
  &lt;/div&gt;
  </code></pre>
  
  <p>According to the doccomments, items has only two attributes</p>
  
  <pre><code>* - items: List of all the field items. Each item contains:
  *   - attributes: List of HTML attributes for each item.
  *   - content: The field item's content.
  </code></pre>
  
  <p>The "tab content" renders perfectly. I have a template that renders the node as tab content.</p>
  
  <p>I get the correct number of tab controls, because I am iterating through the items, but I cannot access the item label (title) to render the control correctly, because <code>item.label</code> does not exist.</p>
  
  <p>I can think of two approaches:</p>
  
  <ul>
  <li>Create a hook to somehow add the node label to <code>item</code>.</li>
  <li>Create a two templates: tab controls and tab content, that both select the node items, but render either the controls or the content.</li>
  </ul>
  
  <p>I'm not sure if either is possible.</p>