function adsense_adstxt_help in Google AdSense integration 8
Same name and namespace in other branches
- 7 adstxt/adsense_adstxt.module \adsense_adstxt_help()
Implements hook_help().
File
- adstxt/
adsense_adstxt.module, line 17 - Generates an ads.txt file suitable for use with Google AdSense.
Code
function adsense_adstxt_help($route_name, RouteMatchInterface $route_match) {
$output = '';
switch ($route_name) {
case 'help.page.adsense_adstxt':
$url = Url::fromUri('https://iabtechlab.com/ads-txt');
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module creates an ads.txt file compliant with the <a href="@link">ads.txt specification</a>.', [
'@link' => $url
->toString(),
]) . '</p>';
}
return $output;
}