In QGIS I would like to create an action of type "python" on layer scope, aim of this simple action is to print out the selected feature of the layer the action is defined on:
My simple question is: How do I refer to the layer the action is defined on in the python code?