public function CustomSearchV2Ad::__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
- src/
Plugin/ AdsenseAd/ CustomSearchV2Ad.php, line 31
Class
- CustomSearchV2Ad
- Provides an AdSense custom search engine form.
Namespace
Drupal\adsense\Plugin\AdsenseAdCode
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->slot = !empty($configuration['slot']) ? $configuration['slot'] : '';
}