...
The easiest way to create the structure for the new plugin Plugin is with Cake's bake command.
While there are no longer technical requirements around the construction of a pluginPlugin's name, it is still advisable for the plugin Plugin to be named in a way that describes its primary purpose, such as SqlSource or NightlyReport.
...
It's not obvious from the command output, but app/src/Application.php
will also be updated to load the plugin. This change is not needed needed (Registry will automatically load activated plugins) and should be reverted.
...
Plugins must implement at least one Entry Point Model for each supported Plugin Type declared in the types
section. Entry Point Models Models belongTo the Pluggable Model. For example, PersonStatusReports belongsTo Reports. Plugins may implement additional models beyond the Entry Point Model, these do not need to be registered in plugin.json
. There are no naming requirements for Entry Point Models, but it is recommended that the name references the Plugin Type (and in many cases may be the same as or similar to the plugin name).
...