Saut Drupal 10.4.3 -> 11.4.13 + maj modules contrib compatibles D11

- core-recommended/scaffold/project-message ^11.4, platform php 8.3.37, symfony/runtime allow-plugin
- drush ^13, toutes les contraintes modules montées vers D11 (racine + profil starterkit)
- modules abandonnés D11 pris en custom: path_alias_xt, content_type_clone, bulkdelete, imagestyleflush (flush_single_image), audiofield (annotations -> attributs PHP 8), adminimal_theme (theme)
- decoupled + theme caravane: core_version_requirement || ^11
- .gitmodules du profil -> gitea (gogs mort)
- patch page_manager 3438993 retiré (ne s'applique plus sur 4.1.0, refactor upstream)
- sync: retrait ban/actions_permissions/seven (modules core supprimés en D11) + normalisation cex D11
- config_pages: conflit intro_partenaire résolu

Tests local (docker php 8.3.37): updb OK, cim OK, getChangeList vide, 6 pages clés hash-identiques avant/après, watchdog sans erreur nouvelle.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-11-22 16:51:02 +01:00
parent 1d558c0296
commit 38d0039766
158 changed files with 13526 additions and 2669 deletions
@@ -0,0 +1,113 @@
<?php
/**
* @file
* Installation file for Audiofield module.
*/
use Drupal\Core\Link;
use Drupal\Core\Url;
/**
* Implements hook_requirements().
*/
function audiofield_requirements($phase) {
$requirements = [];
if ($phase == 'runtime') {
$requirements['audiofield'] = [
'title' => t('AudioField Players'),
'severity' => REQUIREMENT_INFO,
'value' => '',
'description' => [
'installed' => [
'#theme' => 'item_list',
'#items' => [],
'#title' => '',
'#list_type' => 'ul',
'#attributes' => [],
],
'outdated' => [
'#theme' => 'item_list',
'#items' => [],
'#title' => '',
'#list_type' => 'ul',
'#attributes' => [],
],
'uninstalled' => [
'#theme' => 'item_list',
'#items' => [],
'#title' => '',
'#list_type' => 'ul',
'#attributes' => [],
],
],
];
// Loop over each plugin and make sure it's library is installed.
foreach (\Drupal::service('plugin.manager.audiofield')->getDefinitions() as $pluginName => $plugin) {
// Create an instance of this plugin.
$pluginInstance = \Drupal::service('plugin.manager.audiofield')->createInstance($pluginName);
// Only check install if there is a library for the plugin.
if ($pluginInstance->getPluginLibrary()) {
// Check if the plugin is installed.
if (!$pluginInstance->checkInstalled()) {
// Show a warning here as something is not installed.
$requirements['audiofield']['description']['uninstalled']['#prefix'] = t('Unavailable players');
// Try to print the install directory (will fail if the library itself
// is broken somehow).
try {
$requirements['audiofield']['description']['uninstalled']['#items'][] = t(':library_name library has not been installed. Download from <a href=":url">:url</a> and install in %library', [
':library_name' => $pluginInstance->getPluginTitle(),
':url' => $pluginInstance->getPluginRemoteSource(),
'%library' => $pluginInstance->getPluginLibraryPath(),
]);
}
catch (Exception $e) {
$requirements['audiofield']['description']['uninstalled']['#items'][] = t(':library_name library has not been installed. Download and install in %library', [
':library_name' => $pluginInstance->getPluginTitFle(),
'%library' => $pluginInstance->getPluginLibraryPath(),
]);
}
}
elseif (!$pluginInstance->checkVersion(FALSE)) {
$requirements['audiofield']['description']['outdated']['#prefix'] = t('Out of Date players');
$requirements['audiofield']['description']['outdated']['#items'][] = t(':library_name library (version @version) is installed at %library, but is out of date. Please update to the latest version available at @url, or by running %command', [
':library_name' => $pluginInstance->getPluginTitle(),
'%library' => $pluginInstance->getPluginLibraryPath(),
'@version' => $pluginInstance->getPluginLibraryVersion(),
'@url' => Link::fromTextAndUrl($pluginInstance->getPluginRemoteSource(), Url::fromUri($pluginInstance->getPluginRemoteSource()))->toString(),
'%command' => 'drush audiofield-update',
]);
}
else {
$requirements['audiofield']['description']['installed']['#prefix'] = t('Available players');
$requirements['audiofield']['description']['installed']['#items'][] = t(':library_name library (version @version) has been successfully installed at %library', [
':library_name' => $pluginInstance->getPluginTitle(),
'@version' => $pluginInstance->getPluginLibraryVersion(),
'%library' => $pluginInstance->getPluginLibraryPath(),
]);
}
}
}
// Check if the audiowaveform command is installed for use with wavesurfer.
$requirements['audiowaveform'] = [
'title' => t('Audiowaveform'),
'severity' => REQUIREMENT_INFO,
'value' => '',
'description' => t('Audiowaveform is not currently installed or the PHP function shell_exec is unavailable on this server. Audiowaveform is used to pre-render waveform files for the Audiofield Wavesurfer module. See @audiowaveformlink', [
'@audiowaveformlink' => Link::fromTextAndUrl(t('the Audiowaveform installation instructions'), Url::fromUri('https://github.com/bbc/audiowaveform'))->toString(),
]),
];
if (audiofield_check_audiowaveform_installed()) {
$requirements['audiowaveform']['description'] = t('@version is installed.', [
'@version' => shell_exec('audiowaveform -v'),
]);
$requirements['audiowaveform']['severity'] = REQUIREMENT_OK;
}
}
return $requirements;
}