function TipPluginImageLegacy::getConfigurationOrNot
Same name in other branches
- 9 core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php \Drupal\tour_test\Plugin\tour\tip\TipPluginImageLegacy::getConfigurationOrNot()
- 10 core/modules/tour/tests/tour_test/src/Plugin/tour/tip/TipPluginImageLegacy.php \Drupal\tour_test\Plugin\tour\tip\TipPluginImageLegacy::getConfigurationOrNot()
File
-
core/
modules/ tour/ tests/ tour_test/ src/ Plugin/ tour/ tip/ TipPluginImageLegacy.php, line 71
Class
- TipPluginImageLegacy
- Displays an image as a tip.
Namespace
Drupal\tour_test\Plugin\tour\tipCode
public function getConfigurationOrNot() {
$image = [
'#theme' => 'image',
'#uri' => $this->get('url'),
'#alt' => $this->get('alt'),
];
return [
'title' => Html::escape($this->get('label')),
'body' => $this->token
->replace(\Drupal::service('renderer')->renderInIsolation($image)),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.