Skip to content

Creating a plugin#

Needs review

This page needs to be updated with up-to-date information on creating custom plugins.

Creating a Custom Plugin by Extending IntegrationBase for Custom Integrations.

To integrate the BankID module with a third-party system like a CRM, follow these steps:

  1. Create a Custom Module: Set up a custom module if you don't have one.
  2. Define the Plugin: Create a PHP file in src/Plugin/BankID/ within your module, extending IntegrationBase.
  3. Implement Methods:
    • getUser(): Get the user from the response.
    • createUser(): Create the user from the response.
  4. Register the Plugin: Enable your module so Drupal registers the plugin.
  5. Configure the Integration: In BankID settings, select and configure your custom integration.
  6. Test the Integration: Ensure the plugin works with the CRM, handling authentication and data sync correctly.

This allows seamless authentication integration with external systems like CRMs.