You are here

public static function PublisherId::get in Google AdSense integration 8

Returns the site's publisher ID.

Return value

string The configured site's publisher ID.

13 calls to PublisherId::get()
AdsenseAdsTxtController::display in adstxt/src/Controller/AdsenseAdsTxtController.php
Display the ads.txt page.
adsense_page_attachments in ./adsense.module
Implements hook_page_attachments().
CseV2ResultsController::display in src/Controller/CseV2ResultsController.php
Display the search results page.
CustomSearchAd::getAdContent in src/Plugin/AdsenseAd/CustomSearchAd.php
Return the ad content.
CustomSearchAd::getAdPlaceholder in src/Plugin/AdsenseAd/CustomSearchAd.php
Return the ad placeholder.

... See full list

File

src/PublisherId.php, line 16

Class

PublisherId
Handler for the AdSense publisher ID.

Namespace

Drupal\adsense

Code

public static function get() {
  return \Drupal::config('adsense.settings')
    ->get('adsense_basic_id');
}