Code works, but layout (layout.template_modifiers())
with the list of the modifiers are not disabled
import bpy
class LayoutModifier(bpy.types.Panel):
bl_label = "Layout Modifier"
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = "object"
def draw(self, _context):
layout = self.layout
layout.template_modifiers()
from bpy.utils import register_class
if __name__ == "__main__":
register_class(LayoutModifier)