public function HelpTopicPluginBase::toUrl in Drupal 10
Same name and namespace in other branches
- 8 core/modules/help_topics/src/HelpTopicPluginBase.php \Drupal\help_topics\HelpTopicPluginBase::toUrl()
- 9 core/modules/help_topics/src/HelpTopicPluginBase.php \Drupal\help_topics\HelpTopicPluginBase::toUrl()
File
- core/
modules/ help_topics/ src/ HelpTopicPluginBase.php, line 50
Class
- HelpTopicPluginBase
- Base class for help topic plugins.
Namespace
Drupal\help_topicsCode
public function toUrl(array $options = []) {
return Url::fromRoute('help.help_topic', [
'id' => $this
->getPluginId(),
], $options);
}