Capabilities/moodle/legacy:teacher
From MoodleDocs
moodle/legacy:teacher is implemented for backward compatibility. It is flag to tell moodle that this role is a "non-editting teacher" role. It is not required to set any legacy flags.