You are here

public function OldSearchAd::__construct in Google AdSense integration 8

Creates a new AdsenseAdBase instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed|null $plugin_definition: The plugin implementation definition.

\Drupal\Core\Config\ConfigFactoryInterface|null $config_factory: The config factory.

\Drupal\Core\Extension\ModuleHandlerInterface|null $module_handler: The module handler.

\Drupal\Core\Session\AccountProxyInterface|null $current_user: The current user.

Overrides AdsenseAdBase::__construct

File

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

Class

OldSearchAd
Provides an AdSense old search engine form.

Namespace

Drupal\adsense_oldcode\Plugin\AdsenseAd

Code

public function __construct(array $configuration, $plugin_id = '', $plugin_definition = NULL, $config_factory = NULL, $module_handler = NULL, $current_user = NULL) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $config_factory, $module_handler, $current_user);
  $this->channel = !empty($configuration['channel']) ? $configuration['channel'] : '';
}