install_goto

install_goto($path) Sends the user to a different installer page. This issues an on-site HTTP redirect. Messages (and errors) are erased. Parameters $path: An installer path. File core/includes/install.inc, line 846 API functions for installing modules and themes. Code function install_goto($path) { global $base_url; $headers = array( // Not a permanent redirect. 'Cache-Control' => 'no-cache', ); $response = new RedirectResponse($base_url . '/' . $path, 302, $headers); $

install_get_form

install_get_form($form_id, array &$install_state) Builds and processes a form for the installer environment. Ensures that FormBuilder does not redirect after submitting a form, since the installer uses a custom step/flow logic via install_run_tasks(). Parameters string|array $form_id: The form ID to build and process. array $install_state: The current state of the installation. Return value array|null A render array containing the form to render, or NULL in case the form was successfully

install_full_redirect_url

install_full_redirect_url($install_state) Returns the complete URL redirected to during an installation request. Parameters $install_state: An array of information about the current installation state. Return value The complete URL to redirect to. See also install_redirect_url() File core/includes/install.core.inc, line 944 API functions for installing Drupal. Code function install_full_redirect_url($install_state) { global $base_url; return $base_url . '/' . install_redirect_url($inst

install_finish_translations

install_finish_translations(&$install_state) Finishes importing files at end of installation. If other projects besides Drupal core have been installed, their translation will be imported here. Parameters $install_state: An array of information about the current installation state. Return value array An array of batch definitions. File core/includes/install.core.inc, line 1715 API functions for installing Drupal. Code function install_finish_translations(&$install_state) { \Drupal

install_finished

install_finished(&$install_state) Performs final installation steps and displays a 'finished' page. Parameters $install_state: An array of information about the current installation state. Return value A message informing the user that the installation is complete. File core/includes/install.core.inc, line 1747 API functions for installing Drupal. Code function install_finished(&$install_state) { $profile = drupal_get_profile(); // Installation profiles are always loaded last.

install_find_translations

install_find_translations() Finds all .po files that are useful to the installer. Return value An associative array of file URIs keyed by language code. URIs as returned by file_scan_directory(). See also file_scan_directory() File core/includes/install.core.inc, line 1245 API functions for installing Drupal. Code function install_find_translations() { $translations = array(); $files = \Drupal::service('string_translator.file_translation')->findTranslationFiles(); // English does n

install_ensure_config_directory

install_ensure_config_directory($type) Ensures that the config directory exists and is writable, or can be made so. Parameters string $type: Type of config directory to return. Drupal core provides 'sync'. Return value bool TRUE if the config directory exists and is writable. Deprecated in Drupal 8.1.x, will be removed before Drupal 9.0.x. Use config_get_config_directory() and file_prepare_directory() instead. File core/includes/install.inc, line 534 API functions for installing modules an

install_drupal

install_drupal($class_loader, $settings = array()) Installs Drupal either interactively or via an array of passed-in settings. The Drupal installation happens in a series of steps, which may be spread out over multiple page requests. Each request begins by trying to determine the last completed installation step (also known as a "task"), if one is available from a previous request. Control is then passed to the task handler, which processes the remaining tasks that need to be run until (a) an e

install_download_translation

install_download_translation(&$install_state) Download a translation file for the selected language. Parameters array $install_state: An array of information about the current installation state. Return value string A themed status report, or an exception if there are requirement errors. Upon successful download the page is reloaded and no output is returned. File core/includes/install.core.inc, line 1330 API functions for installing Drupal. Code function install_download_translation(&a

install_download_additional_translations_operations

install_download_additional_translations_operations(&$install_state) Prepares the system for import and downloads additional translations. Parameters $install_state: An array of information about the current installation state. Return value The batch definition, if there are language files to download. File core/includes/install.core.inc, line 1579 API functions for installing Drupal. Code function install_download_additional_translations_operations(&$install_state) { \Drupal::mod