Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Adding License.txt
Adding the controllet that will perform the text analisys
Adding the service code
Adding a new custom service
Using dependency injection to aceess config.factory / http_request / toxicity analyzer
Changing the menu name to match the drupal.org project name.
Code review + adding new configuration
Adding drupalSetttings
Matching the schema with the new configuration added
Adding new configuration to the module
Adding the API route to get the toxicity