How to Get Asset Volume Name Trying to figure out how to get the &quot;name&quot; and &quot;handle&quot; of an asset volume, given the volume ID. Tried all the obvious things, no luck!
The Volumes service is available via craft.app.volumes, so you can do
{% set volume = craft.app.volumes.getVolumeByHandle('volumeHandle') %}
{{ volume.name }}

or
{% set volume = craft.app.volumes.getVolumeById(123) %}
{{ volume.name }}

Additionally, if you have an Asset model available, you can get its volume like this:
{% set volume = asset.volume %}
{{ volume.name }}