Loading drush/photoswipe.drush.inc +1 −1 Changes for drush/photoswipe.drush.inc: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -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.'), ], Loading src/PhotoswipePreprocessProcessor.php +2 −2 Changes for src/PhotoswipePreprocessProcessor.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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; } } Loading Loading @@ -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()); } } Loading Loading
drush/photoswipe.drush.inc +1 −1 Changes for drush/photoswipe.drush.inc: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -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.'), ], Loading
src/PhotoswipePreprocessProcessor.php +2 −2 Changes for src/PhotoswipePreprocessProcessor.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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; } } Loading Loading @@ -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()); } } Loading