@trigger_error('Procedural hook_install_tasks() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. Use TasksInterface instead. See https://www.drupal.org/node/3623397',E_USER_DEPRECATED);
$result=$function($install_state);
if(is_array($result)){
$tasks+=$result;
@@ -876,6 +885,7 @@ function install_tasks($install_state): array {
}
}
}
}
// Finish by adding the remaining core tasks.
$tasks+=[
@@ -891,9 +901,15 @@ function install_tasks($install_state): array {
// Allow the installation profile to modify the full list of tasks.
@trigger_error('Procedural hook_install_tasks_alter() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. Use TasksInterface instead. See https://www.drupal.org/node/3623397',E_USER_DEPRECATED);
$function($tasks,$install_state);
}
}
@@ -2641,3 +2657,58 @@ function _install_get_database_module_name(): ?string {
}
return$database_module;
}
/**
* Checks a profile for install tasks.
*
* See \Drupal\Core\Extension\Install\TasksInterface for more information.