Update to Drupal 8.0.3. For more information, see https://www.drupal.org/drupal-8.0.3-release-notes
This commit is contained in:
parent
10f9f7fbde
commit
9db4fae9a7
202 changed files with 3806 additions and 760 deletions
22
core/modules/image/image.post_update.php
Normal file
22
core/modules/image/image.post_update.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Post-update functions for Image.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Entity\Entity\EntityViewDisplay;
|
||||
use Drupal\Core\Entity\Entity\EntityFormDisplay;
|
||||
|
||||
/**
|
||||
* Saves the image style dependencies into form and view display entities.
|
||||
*/
|
||||
function image_post_update_image_style_dependencies() {
|
||||
// Merge view and form displays. Use array_values() to avoid key collisions.
|
||||
$displays = array_merge(array_values(EntityViewDisplay::loadMultiple()), array_values(EntityFormDisplay::loadMultiple()));
|
||||
/** @var \Drupal\Core\Entity\Display\EntityDisplayInterface[] $displays */
|
||||
foreach ($displays as $display) {
|
||||
// Re-save each config entity to add missed dependencies.
|
||||
$display->save();
|
||||
}
|
||||
}
|
Reference in a new issue