@classmethod
    def get_trigger(cls, trigger_type):
        if trigger_type not in cls._triggers_dict:
            cls._refresh()

        return cls._triggers_dict[trigger_type]
Gets a trigger by its type.
dataset/ETHPy150Open oppia/oppia/core/domain/trigger_registry.py/Registry.get_trigger