Extending package for courses
This repository stores code for EscolaLMS Content Topic types. At the moment there are the following types:
Those types are used for building headless Course.
This package is installing with package course - See TopicTypes
It's possible to add any new content type, for example HTML Text.
See Courses readme for tutorial
Run ./vendor/bin/phpunit --filter 'EscolaLms\\TopicTypes\\Tests'
to run tests. See tests folder as it's quite good staring point as documentation appendix.
EscolaLms\TopicTypes\Events\TopicTypeChanged
=> Event is dispatched when topic type value is changed.Add topic type to lesson