Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
[OPENY-237] Fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Miroslav Lee committed Dec 20, 2018
1 parent 88a86ff commit 0c11996
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,18 @@ function openy_media_image_update_8009() {
* Remove blazy for icons.
*/
function openy_media_image_update_8010() {
$entity_type_manager = \Drupal::entityTypeManager();
$logger_entity_storage = $entity_type_manager->getStorage('logger_entity');
$query = $logger_entity_storage
->getQuery('AND')
->condition('name', 'core.entity_view_display.media.image.icon')
->condition('type', 'openy_config_upgrade_logs');
$ids = $query->execute();
$storage_handler = $entity_type_manager->getStorage('logger_entity');
$storage_handler->delete($logger_entity_storage->loadMultiple($ids));
$entities = $storage_handler->loadMultiple($ids);
$storage_handler->delete($entities);

$config_dir = drupal_get_path('module', 'openy_media_image') . '/config/install/';
// Update multiple configurations.
$configs = [
Expand Down

0 comments on commit 0c11996

Please # to comment.