Update plugin definition with isEnvironmentSupported optional member #2692
Labels
changelog:api
A changelog entry should be put in the API section of the changelog.
status:confirmed
An issue confirmed by the development team.
type:task
Any other issue (refactoring, typo fix, etc).
Milestone
Type of report
Task
Provide description of the task
Some of our plugins work only on chosen environments. As an example,
easyimage
is working only on modern browsers. It would be nice to have a dedicated place where such information is placed. The best option seems to treatisEnvironmentSupported
as an abstract, optional member of the plugin definition. In the future, we may use this function to conditionally load plugins directly from the loader, but for now, it should be enough to just document it in the plugin definition.The text was updated successfully, but these errors were encountered: