adstxt.module in AdsTxt 8
File
adstxt.module
View source
<?php
use Drupal\Core\Routing\RouteMatchInterface;
function adstxt_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.adstxt':
return '<p>' . t('In a multisite environment, there is no mechanism for having a separate ads.txt file for each site. This module addresses that need by letting you administer the ads.txt file from the settings interface.') . '</p>';
case 'adstxt.admin_settings_form':
return t('See <a href="https://iabtechlab.com/ads-txt/">https://iabtechlab.com/ads-txt/</a> for more information concerning how to write your <a href="@adstxt">ads.txt</a> file.', [
'@adstxt' => base_path() . 'ads.txt',
]);
}
}