You are here

PublisherId.php in Google AdSense integration 8

Namespace

Drupal\adsense

File

src/PublisherId.php
View source
<?php

namespace Drupal\adsense;


/**
 * Handler for the AdSense publisher ID.
 */
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');
  }

}

Classes

Namesort descending Description
PublisherId Handler for the AdSense publisher ID.