# Gimp.GroupLayer.get_by_id

    function get_by_id(layer_id: Number(gint32)): Gimp.GroupLayer {
        // Gjs wrapper for gimp_group_layer_get_by_id()
    }

Returns a Gimp.GroupLayer representing layer_id. This function calls Gimp.Item.get_by_id and returns the item if it is a group layer or null otherwise.

Since 3.0

layer_id

  The layer id.

Returns

  a Gimp.GroupLayer for layer_id or null if layer_id does not represent a valid group layer. The object belongs to libgimp and you must not modify or unref it.