def METHOD_NAME(self, iface, both=False):
    """Get items connecting to interface.
    :Parameters:
     iface
        Interface in question.
     both
        If true, then filter out one-side connections.
    """
    diagram = iface.diagram
    connected = diagram.connections.get_connections(connected=iface)
    if both:
        connected = [
            c
            for c in connected
            if diagram.connections.get_connection(c.item.opposite(c.handle))
        ]
    return connected