You are here

public function OldSearchAd::getAdPlaceholder in Google AdSense integration 8

Return the ad placeholder.

Return value

array ad placeholder

Overrides AdsenseAdInterface::getAdPlaceholder

File

oldcode/src/Plugin/AdsenseAd/OldSearchAd.php, line 38

Class

OldSearchAd
Provides an AdSense old search engine form.

Namespace

Drupal\adsense_oldcode\Plugin\AdsenseAd

Code

public function getAdPlaceholder() {
  $client = PublisherId::get();
  $content = "Old Search\nclient = {$client}";
  return [
    '#content' => [
      '#markup' => nl2br($content),
    ],
    '#format' => 'Search Box',
  ];
}