Update to Drupal 8.2.2. For more information, see https://www.drupal.org/project/drupal/releases/8.2.2
This commit is contained in:
parent
23ffed3665
commit
507b45a0ed
378 changed files with 11434 additions and 5542 deletions
|
@ -511,8 +511,6 @@ function template_preprocess_form_element_label(&$variables) {
|
|||
$variables['title'] = ['#markup' => $element['#title']];
|
||||
}
|
||||
|
||||
$variables['attributes'] = array();
|
||||
|
||||
// Pass elements title_display to template.
|
||||
$variables['title_display'] = $element['#title_display'];
|
||||
|
||||
|
|
|
@ -930,27 +930,35 @@ function drupal_requirements_url($severity) {
|
|||
*/
|
||||
function drupal_check_profile($profile) {
|
||||
$info = install_profile_info($profile);
|
||||
|
||||
// Collect requirement testing results.
|
||||
$requirements = array();
|
||||
|
||||
// Performs an ExtensionDiscovery scan as the system module is unavailable and
|
||||
// we don't yet know where all the modules are located.
|
||||
// @todo Remove as part of https://www.drupal.org/node/2186491
|
||||
$listing = new ExtensionDiscovery(\Drupal::root());
|
||||
$module_list = $listing->scan('module');
|
||||
foreach ($info['dependencies'] as $module) {
|
||||
$file = \Drupal::root() . '/' . $module_list[$module]->getPath() . "/$module.install";
|
||||
if (is_file($file)) {
|
||||
require_once $file;
|
||||
}
|
||||
$function = $module . '_requirements';
|
||||
$drupal_root = \Drupal::root();
|
||||
$module_list = (new ExtensionDiscovery($drupal_root))->scan('module');
|
||||
|
||||
drupal_classloader_register($module, $module_list[$module]->getPath());
|
||||
if (function_exists($function)) {
|
||||
$requirements = array_merge($requirements, $function('install'));
|
||||
foreach ($info['dependencies'] as $module) {
|
||||
// If the module is in the module list we know it exists and we can continue
|
||||
// including and registering it.
|
||||
// @see \Drupal\Core\Extension\ExtensionDiscovery::scanDirectory()
|
||||
if (isset($module_list[$module])) {
|
||||
$function = $module . '_requirements';
|
||||
$module_path = $module_list[$module]->getPath();
|
||||
$install_file = "$drupal_root/$module_path/$module.install";
|
||||
|
||||
if (is_file($install_file)) {
|
||||
require_once $install_file;
|
||||
}
|
||||
|
||||
drupal_classloader_register($module, $module_path);
|
||||
|
||||
if (function_exists($function)) {
|
||||
$requirements = array_merge($requirements, $function('install'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $requirements;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue