'Get the current layout'

def _layout(self):

    layout = self.options.layout
    if (not layout):
        layout = current.deployment_settings.get_ui_inline_component_layout()
    elif isinstance(layout, type):
        layout = layout()
    return layout
