Skip to content

feat: Introduce new Image::set_attribute()#117

Merged
gchtr merged 1 commit into2.xfrom
2.x-set-attribute
Jan 30, 2026
Merged

feat: Introduce new Image::set_attribute()#117
gchtr merged 1 commit into2.xfrom
2.x-set-attribute

Conversation

@gchtr
Copy link
Copy Markdown
Member

@gchtr gchtr commented Jan 27, 2026

This PR introduces a new Image::set_attribute() function so that you can add other HTML attributes to your responsive image markup.

Here’s an example for setting a style attribute.

$image->set_attribute('style', 'object-fit:cover;width:374px;height:150px');

@gchtr gchtr merged commit 0656317 into 2.x Jan 30, 2026
8 checks passed
@gchtr gchtr deleted the 2.x-set-attribute branch January 30, 2026 16:27
This was referenced Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant