Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Asset::getFormat() method #12398

Merged
merged 4 commits into from
Jan 10, 2023

Conversation

brianjhanson
Copy link
Contributor

Description

When a transform is applied (and the asset can be transformed) getFormat() will return the format of the transform. If no transform is provided, or the asset cannot be transformed the file extension will be returned.

When a transform is applied (and the asset can be transformed) `getFormat()` will return the format of the transform. If no transform is provided, or the asset cannot be transformed the file extension will be returned.
@brianjhanson brianjhanson requested a review from a team as a code owner November 29, 2022 20:50
@linear
Copy link

linear bot commented Nov 29, 2022

DEV-1038 Add `Asset::getFormat()` method to asset elements

Should return the format of the asset, respecting the transform (essentially the file extension)

@brandonkelly brandonkelly merged commit f9a1d2b into 4.4 Jan 10, 2023
@brandonkelly brandonkelly deleted the feature/dev-1038-add-assetgetformat-method-to-asset branch January 10, 2023 23:29
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.

2 participants