function system_post_update_add_expand_all_items_key_in_system_menu_block
Initialize 'expand_all_items' values to system_menu_block.
File
-
core/
modules/ system/ system.post_update.php, line 220
Code
function system_post_update_add_expand_all_items_key_in_system_menu_block(&$sandbox = NULL) {
if (!\Drupal::moduleHandler()->moduleExists('block')) {
return;
}
\Drupal::classResolver(ConfigEntityUpdater::class)->update($sandbox, 'block', function ($block) {
return strpos($block->getPluginId(), 'system_menu_block:') === 0;
});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.