install_verify_completed_task

install_verify_completed_task() Verifies and returns the last installation task that was completed. Return value The last completed task, if there is one. An exception is thrown if Drupal is already installed. File core/includes/install.core.inc, line 1072 API functions for installing Drupal. Code function install_verify_completed_task() { try { $task = \Drupal::state()->get('install_task'); } // Do not trigger an error if the database query fails, since the database // might

INSTALL_TASK_SKIP

Do not run the task during the current installation request. This can be used to skip running an installation task when certain conditions are met, even though the task may still show on the list of installation tasks presented to the user. For example, the Drupal installer uses this flag to skip over the database configuration form when valid database connection information is already available from settings.php. It also uses this flag to skip language import tasks when the installation is bei

INSTALL_TASK_RUN_IF_REACHED

Run the task on each installation request that reaches it. This is primarily used by the Drupal installer for bootstrap-related tasks. File core/includes/install.core.inc, line 53 API functions for installing Drupal. Code const INSTALL_TASK_RUN_IF_REACHED = 2;

INSTALL_TASK_RUN_IF_NOT_COMPLETED

Run the task on each installation request until the database is set up. This is the default method for running tasks and should be used for most tasks that occur after the database is set up; these tasks will then run once and be marked complete once they are successfully finished. For example, the Drupal installer uses this flag for the batch installation of modules on the new site, and also for the configuration form that collects basic site information and sets up the site maintenance accoun

install_tasks_to_perform

install_tasks_to_perform($install_state) Returns a list of tasks to perform during the current installation request. Note that the list of tasks can change based on the installation state as the page request evolves (for example, if an installation profile hasn't been selected yet, we don't yet know which profile tasks need to be run). Parameters $install_state: An array of information about the current installation state. Return value A list of tasks to be performed, with associated metadata

install_tasks_to_display

install_tasks_to_display($install_state) Returns a list of tasks that should be displayed to the end user. The output of this function is a list suitable for sending to maintenance-task-list.html.twig. Parameters $install_state: An array of information about the current installation state. Return value A list of tasks, with keys equal to the machine-readable task name and values equal to the name that should be displayed. See also maintenance-task-list.html.twig File core/includes/install.co

install_tasks

install_tasks($install_state) Returns a list of all tasks the installer currently knows about. This function will return tasks regardless of whether or not they are intended to run on the current page request. However, the list can change based on the installation state (for example, if an installation profile hasn't been selected yet, we don't yet know which profile tasks will be available). You can override this using hook_install_tasks() or hook_install_tasks_alter(). Parameters $install_st

install_state_defaults

install_state_defaults() Returns an array of default settings for the global installation state. The installation state is initialized with these settings at the beginning of each page request. They may evolve during the page request, but they are initialized again once the next request begins. Non-interactive Drupal installations can override some of these default settings by passing in an array to the installation script, most notably 'parameters' (which contains one-time parameters such as '

install_select_profile

install_select_profile(&$install_state) Selects which profile to install. Parameters $install_state: An array of information about the current installation state. The chosen profile will be added here, if it was not already selected previously, as will a list of all available profiles. Return value For interactive installations, a form allowing the profile to be selected, if the user has a choice that needs to be made. Otherwise, an exception is thrown if a profile cannot be chosen automa

install_select_language

install_select_language(&$install_state) Selects which language to use during installation. Parameters $install_state: An array of information about the current installation state. The chosen langcode will be added here, if it was not already selected previously, as will a list of all available languages. Return value For interactive installations, a form or other page output allowing the language to be selected or providing information about language selection, if a language has not been