Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -5,10 +5,9 @@
|
|||
* Post update functions for System.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @addtogroup updates-8.0.0-beta
|
||||
* @{
|
||||
*/
|
||||
use Drupal\Core\Entity\Display\EntityDisplayInterface;
|
||||
use Drupal\Core\Entity\Entity\EntityFormDisplay;
|
||||
use Drupal\Core\Entity\Entity\EntityViewDisplay;
|
||||
|
||||
/**
|
||||
* Re-save all configuration entities to recalculate dependencies.
|
||||
|
@ -39,5 +38,30 @@ function system_post_update_recalculate_configuration_entity_dependencies(&$sand
|
|||
}
|
||||
|
||||
/**
|
||||
* @} End of "addtogroup updates-8.0.0-beta".
|
||||
* Update entity displays to contain the region for each field.
|
||||
*/
|
||||
function system_post_update_add_region_to_entity_displays() {
|
||||
$entity_save = function (EntityDisplayInterface $entity) {
|
||||
// preSave() will fill in the correct region based on the 'type'.
|
||||
$entity->save();
|
||||
};
|
||||
array_map($entity_save, EntityViewDisplay::loadMultiple());
|
||||
array_map($entity_save, EntityFormDisplay::loadMultiple());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Force caches using hashes to be cleared (Twig, render cache, etc.).
|
||||
*/
|
||||
function system_post_update_hashes_clear_cache() {
|
||||
// Empty post-update hook.
|
||||
}
|
||||
|
||||
/**
|
||||
* Force plugin definitions to be cleared.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2802663
|
||||
*/
|
||||
function system_post_update_timestamp_plugins() {
|
||||
// Empty post-update hook.
|
||||
}
|
||||
|
|
Reference in a new issue