Commit 575d6588 authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Issue #3122763 by prabha1997, kuldeep_mehra27, saphemmy, mrinalini9,...

Issue #3122763 by prabha1997, kuldeep_mehra27, saphemmy, mrinalini9, victoria-marina, Anybody: Replaced deprecated method for drush_log and drush_delete_dir()
parent c5c24f3c
Loading
Loading
Loading
Loading
+1 −1
Changes for drush/photoswipe.drush.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ function photoswipe_drush_command() {
    'callback' => 'drush_photoswipe_plugin',
    'description' => dt('Download and install the PhotoSwipe plugin.'),
  // No bootstrap.
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    'bootstrap' => DRUSH_BOOTSTRAP_NONE,
    'arguments' => [
      'path' => dt('Optional. A path where to install the PhotoSwipe plugin. If omitted Drush will use the default location.'),
    ],
+2 −2
Changes for src/PhotoswipePreprocessProcessor.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ class PhotoswipePreprocessProcessor implements ContainerInjectionInterface {
            break;
          }
          $field_view = $entity->{$caption_setting}->view();
          $caption = render($field_view);
          $caption = \Drupal::service('renderer')->render($field_view);
          break;
      }
    }
@@ -237,7 +237,7 @@ class PhotoswipePreprocessProcessor implements ContainerInjectionInterface {
      return $style->buildUrl($this->imageDTO->getUri());
    }
    else {
      return file_create_url($this->imageDTO->getUri());
      return \Drupal::service('file_url_generator')->generateAbsoluteString($this->imageDTO->getUri());
    }
  }