INSTALL_TASK_SKIP

Same name in other branches
  1. 7.x includes/install.core.inc \INSTALL_TASK_SKIP
  2. 8.9.x core/includes/install.core.inc \INSTALL_TASK_SKIP
  3. 10 core/includes/install.core.inc \INSTALL_TASK_SKIP
  4. 11.x core/includes/install.core.inc \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 being performed in English.

3 uses of INSTALL_TASK_SKIP
hook_install_tasks in core/lib/Drupal/Core/Extension/module.api.php
Return an array of tasks to be performed by an installation profile.
install_tasks in core/includes/install.core.inc
Returns a list of all tasks the installer currently knows about.
install_tasks_to_perform in core/includes/install.core.inc
Returns a list of tasks to perform during the current installation request.

File

core/includes/install.core.inc, line 55

Code

const INSTALL_TASK_SKIP = 1;

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