Problem/Motivation

The module supports the tokens url, uri, width, height, filesize and mimetype for the image_with_image_style type, but no `alt` token for the alternative text of the image.

API changes

Implement the alt token for image_with_image_style.

Issue fork token-3587238

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mvonfrie created an issue. See original summary.

mvonfrie’s picture

Assigned: mvonfrie » Unassigned

I've added the implementation. Can someone please add some tests for the alt token?

berdir’s picture

Status: Active » Postponed (maintainer needs more info)

I don't see why that is necessary. an image style doesn't have an alt text, only the image field does. Do [node:image_field:alt], not [node:image_field:style:alt]