diff --git a/core/modules/tour/tests/tour_test/lib/Drupal/tour_test/Plugin/tour/tip/TipPluginImage.php b/core/modules/tour/tests/tour_test/lib/Drupal/tour_test/Plugin/tour/tip/TipPluginImage.php index b03ffbe..83c6ca0 100644 --- a/core/modules/tour/tests/tour_test/lib/Drupal/tour_test/Plugin/tour/tip/TipPluginImage.php +++ b/core/modules/tour/tests/tour_test/lib/Drupal/tour_test/Plugin/tour/tip/TipPluginImage.php @@ -37,8 +37,13 @@ class TipPluginImage extends TipPluginBase { * Overrides \Drupal\tour\Plugin\tour\tour\TipPluginInterface::getOutput(). */ public function getOutput() { + $image = array( + '#theme' => 'image', + '#uri' => $this->get('url'), + '#alt' => $this->get('alt'), + ); $output = '

' . check_plain($this->get('label')) . '

'; - $output .= '

' . theme('image', array('uri' => $this->get('url'), 'alt' => $this->get('alt'))) . '

'; + $output .= '

' . drupal_render($image) . '

'; return array('#markup' => $output); }