function uc_cart_links_help in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_cart_links/uc_cart_links.module \uc_cart_links_help()
Implements hook_help().
File
- uc_cart_links/
uc_cart_links.module, line 16 - Allows store owners to create links to add products to carts and send customers on to checkout.
Code
function uc_cart_links_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'uc_cart_links.settings':
return '<p>' . t('<a href=":url">View the help page</a> to learn how to create Cart Links.', [
':url' => Url::fromRoute('help.page', [
'name' => 'uc_cart_links',
])
->toString(),
]) . '</p>';
case 'help.page.uc_cart_links':
return CartLinksHelp::creationHelp();
}
}