function TestingInstallTasksInterfaceTasks::alter

Implements alter.

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.

Overrides TasksInterface::alter

File

core/profiles/tests/testing_install_tasks_interface/src/Install/Tasks/TestingInstallTasksInterfaceTasks.php, line 25

Class

TestingInstallTasksInterfaceTasks
Install tasks.

Namespace

Drupal\testing_install_tasks_interface\Install\Tasks

Code

public function alter(array &$tasks, array $install_state) : void {
  \Drupal::keyValue('testing_install_tasks_interface')->set('alter', 'ran');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.