Project: moodle
Issue MDL-40020: Check usage of comment::init() and set component param
With MDL-37243 fix, component name should be passed by plugins using comments. Currently init check values from optional_param, it will be nice to set them with proper validation.
Story points: 20