By nicxvan on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
12.x
Introduced in version:
12.1.0
Issue links:
Description:
The following hooks have been deprecated.
hook_install_taskshook_install_tasks_alter
Replacements must implement Drupal\Core\Extension\Install\TasksInterface
It must be in the Drupal\profile_name\Install\Tasks namespace.
If an OOP version exists procedural version will not run so profiles can keep the procedural version for compatibility with older Drupal versions.
They must have a getTasks and alter method.
You can implement the ContainerInjectionInterface to inject core services.
Impacts:
Site templates, recipes and distribution developers