Ensure that AI API Explorer forms can be provided by modules that provide additional functionality.
#3481156 This PR :
- Provides an interface and Base to be used by all AI API Explorer plugins.
- Removes hardcoded routes and menu items for AI API Explorer forms.
- Adds a RouteSubscriber and hook_menu_links_discovered_alter implementation to generate routes and menu links for any plugins implementing the new Base.
- Adds form that can provide functionality within a given plugin.
- Refactors all existing forms to - as much as possible - to generate valid Drupal render arrays to assist developers overriding the forms using hook_form_alter.
- Adds methods for plugins to provide a label and description for use in the menu system.
- Adds methods for plugins to confirm their dependencies are available.
- Adds methods for plugins to confirm the current logged in user can access the form.
- Adds a custom access check that uses 7 and 8 to decide if the current user has access to the form's generated route.
- Documents the process of creating a new plugin.
Closes #3481156
Edited by Paul Smith