You are here

class PublisherId in Google AdSense integration 8

Handler for the AdSense publisher ID.

Hierarchy

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

... See full list

File

src/PublisherId.php, line 8

Namespace

Drupal\adsense
View 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

Namesort descending Modifiers Type Description Overrides
PublisherId::get public static function Returns the site's publisher ID.