class PublisherId in Google AdSense integration 8
Handler for the AdSense publisher ID.
Hierarchy
- class \Drupal\adsense\PublisherId
Expanded class hierarchy of PublisherId
8 files declare their use of PublisherId
- adsense.module in ./
adsense.module - Displays Google AdSense ads on Drupal pages.
- AdsenseAdsTxtController.php in adstxt/
src/ Controller/ AdsenseAdsTxtController.php - CseV2ResultsController.php in src/
Controller/ CseV2ResultsController.php - CustomSearchAd.php in src/
Plugin/ AdsenseAd/ CustomSearchAd.php - CustomSearchV2Ad.php in src/
Plugin/ AdsenseAd/ CustomSearchV2Ad.php
File
- src/
PublisherId.php, line 8
Namespace
Drupal\adsenseView source
class PublisherId {
/**
* Returns the site's publisher ID.
*
* @return string
* The configured site's publisher ID.
*/
public static function get() {
return \Drupal::config('adsense.settings')
->get('adsense_basic_id');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PublisherId:: |
public static | function | Returns the site's publisher ID. |