I think so, and could it be something a bit more generic like `layer.getFilterAsDisplayString()` as this (I think) makes the intent a bit clearer.