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:
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?)