Skip to content
Snippets Groups Projects
Commit da18eee8 authored by Matthew  Lambert's avatar Matthew Lambert Committed by Matthew Lambert
Browse files

Issue #3299313 by kevinfunk, Project Update Bot, atul ghate, Bushra Shaikh,...

Issue #3299313 by kevinfunk, Project Update Bot, atul ghate, Bushra Shaikh, xiwar: Automated Drupal 10 compatibility fixes
parent c5470732
No related branches found
No related tags found
No related merge requests found
......@@ -470,7 +470,7 @@ class TinySliderFieldFormatter extends EntityReferenceFormatterBase implements C
foreach ($files as $delta => $file) {
if (isset($link_file)) {
$image_uri = $file->getFileUri();
$url = Url::fromUri(file_create_url($image_uri));
$url = \Drupal::service('file_url_generator')->generate($image_uri);
}
$cache_tags = Cache::mergeTags($cache_tags, $file->getCacheTags());
......
name: Tiny Slider
type: module
description: Tiny Slider vanilla JS plugin integration module.
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^9.3 || ^10
package: media
dependencies:
- drupal:field
......
......@@ -55,7 +55,7 @@ function template_preprocess_tiny_slider(&$variables) {
if (!empty($items)) {
$i = 0;
foreach ($items as $item) {
$html .= '<div class="tiny-slider-item-inner tiny-slider-item-inner' . $i . '">' . render($item) . '</div>';
$html .= '<div class="tiny-slider-item-inner tiny-slider-item-inner' . $i . '">' . \Drupal::service('renderer')->render($item) . '</div>';
$i++;
}
}
......@@ -63,7 +63,7 @@ function template_preprocess_tiny_slider(&$variables) {
'#type' => 'markup',
'#markup' => $html,
];
$variables['output'] = render($output);
$variables['output'] = \Drupal::service('renderer')->render($output);
}
......@@ -92,7 +92,7 @@ function template_preprocess_tiny_slider_views(array &$variables) {
'#attached' => ['library' => ['tiny_slider/tiny_slider']],
];
render($attached);
\Drupal::service('renderer')->render($attached);
template_preprocess_views_view_unformatted($variables);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment