@classmethod
def getTypeAndName(cls, plugin):
    """Accepts a full plugin name 'mod_book' and returns the type and plugin name"""
    if plugin == 'moodle' or plugin == 'core' or plugin == '':
        return 'core', None
    if not '_' in plugin:
        t = 'mod'
        name = plugin
    else:
        t, name = plugin.split('_', 1)
        if t == 'moodle':
            t = 'core'
    return t, name
