Results

05.06.2020
bootstrap_site_alert 8.x-2.0-beta6 :: src/Form/BootstrapSiteAlertAdmin.php
41
42
43
44
45
46
47
48
/**
 * Constructs a new UpdateManagerUpdate object.
 *
 * @param \Drupal\Core\State\StateInterface $state
 *   The state service.
 * @param \Drupal\Core\Database\Connection $database
 *   The database connection.
 */
03.06.2020
composer_forced 8.x-1.3 :: src/ComposerForced.php
18
19
20
21
22
23
24
25
26
*   The form to alter.
 */
public static function replaceUpdateManagerUpdateForm(array &$form) {
  $form['composer_forced'] = [
    '#prefix' => '<div class="messages messages--warning">',
    '#markup' => t('Using the UI to update outdated modules is disabled by the <em>Composer Forced</em> module to force the developers of the website to use <a href="@url_using_composer">composer in order to manage site dependencies and upgrades</a>.', [
        ->toString(),
    ]) . ' ' . t("Please contact the website's developers to find out if composer should be executed from the same folder where Drupal's index.php resides in or from another folder like <a href='@url_drupal_composer' target='_blank'>drupal-composer/drupal-project</a> expects.<br>PS: You can still use the UI to enable or uninstall modules or the <a href='@url_update_manager_settings' target='_blank'>settings page</a> to configure notifications about new versions of modules and core.", [
03.06.2020
composer_forced 8.x-1.3 :: composer_forced.module
41
42
43
44
45
46
47
48
49
    $form['actions']['#access'] = FALSE;
  }
  ComposerForced::replaceUpdateManagerUpdateForm($form);
}
 
/**
 * Implements hook_form_FORM_ID_alter().
 */
function composer_forced_form_update_manager_install_form_alter(&$form, FormStateInterface $form_state, $form_id) {

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc