Change record status: 
Project: 
Introduced in branch: 
1.0.x
Introduced in version: 
1.0.0-beta1
Description: 

The AI Disclosure widget and the CSV export command now run as services. Their static methods from 1.0.0-alpha3 still work and call the new code. They are removed in 2.0.0.

Deprecated methods and their replacements:

  • AiDisclosureDefaultWidget::acceptSubmit(): use AiDisclosureDefaultWidget::submitAccept().
  • AiDisclosureDefaultWidget::dismissSubmit(): use AiDisclosureDefaultWidget::submitDismiss().
  • DisclosureReportExportCommand::build(): use buildCommand() on the Drupal\ai_disclosure_csv_export\DisclosureReportExportCommand service.
  • DisclosureReportExportCommand::preRender(): use fillCount() on the same service.

Sites that only use the module have nothing to do. Custom code that calls these methods should move to the replacements before 2.0.0.

Impacts: 
Module developers