function TasksInterface::alter
Alter the full list of installation tasks.
You can use this hook to change or replace any part of the Drupal installation process that occurs after the installation profile is selected.
This method is invoked on the install profile in install_tasks().
Parameters
string[] $tasks: An array of all available installation tasks, including those provided by Drupal core. You can modify this array to change or replace individual steps within the installation process.
array $install_state: An array of information about the current installation state.
See also
Drupal\Core\Extension\Install\TasksInterface
1 method overrides TasksInterface::alter()
- TestingInstallTasksInterfaceTasks::alter in core/
profiles/ tests/ testing_install_tasks_interface/ src/ Install/ Tasks/ TestingInstallTasksInterfaceTasks.php - Implements alter.
File
-
core/
lib/ Drupal/ Core/ Extension/ Install/ TasksInterface.php, line 140
Class
- TasksInterface
- Methods for adding or altering tasks during the installation of Drupal.
Namespace
Drupal\Core\Extension\InstallCode
public function alter(array &$tasks, array $install_state) : void;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.