Drupal 8 - taxonomy term field without "title" attribute I have a simple view block with exposed the taxonomy term linked to the taxonomy page, but I have noticed that the attribute is missing, I tried to rewrite the term but every attempt went wrong.

What I need is simple, this is the view generated field:

&lt;a href="/category/events" tabindex="-1"&gt;Events&lt;/a&gt;


I want to add title="Events", like this:

&lt;a href="/category/events" tabindex="-1" title="Events"&gt;Events&lt;/a&gt;


But I can't find any solutions in Drupal 8 view!
You should be able to use template_preprocess_views_view_field to accomplish this. Create that hook in your custom theme like:

/**
 * Alter field_MY_TAX_FIELD link to add title attribute.
 *
 * Implements template_preprocess_views_view_field().
 */
function MY_THEME_preprocess_views_view_field(&amp;$vars) {
  if ($vars['field']-&gt;field == 'field_MY_TAX_FIELD') {
    // Add title attribute to link.
  }
}


Alternatively you could create a new field formatter that extends Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceLabelFormatter. Override the viewElements method. First call $elements = parent::viewElements($items, $langcode);, then traverse $elements and add your title attribute when appropriate. After you create the formatter, clear cache and then go back to your view and select your new formatter as formatter for the taxonomy field.