What is the equivalent of template_layers in Blender 2.8?

I am updating a 2.79 add-on so that it works with Blender 2.8.

One part of the code creates the old-style Blender layer selection like this:

image

The line of code in the add-on is this:

 row.template_layers(target, "layers", pivot, "layers", target['layer'])

What is the equivalent code for 2.8? (Is there equivalent code in 2.8?)

Blender 2.80 use View Layer. This panel not exist anymore.

1 Like

Thanks, @Hikmet!