Let's collect guidelines for developers, so that the code structure becomes more clear and stays consistant.
- Default values in plugins: they can be defined in
::defaultConfiguration()which will pre-set the fields in the UI. But since the user could remove those values, it still may be possible that the
::executemethods could find empty values, eventhough the default already had a value in them. Therefore, configuration values need to be checked in all use cases and set to default if expectation isn't met.
Last update: December 3, 2022 14:52:57