public function Adsense::buildForm in Thunder 8.4
Same name and namespace in other branches
- 8.2 src/Plugin/Thunder/OptionalModule/Adsense.php \Drupal\thunder\Plugin\Thunder\OptionalModule\Adsense::buildForm()
- 8.3 src/Plugin/Thunder/OptionalModule/Adsense.php \Drupal\thunder\Plugin\Thunder\OptionalModule\Adsense::buildForm()
Overrides AbstractOptionalModule::buildForm
File
- src/
Plugin/ Thunder/ OptionalModule/ Adsense.php, line 22
Class
- Adsense
- Adsense.
Namespace
Drupal\thunder\Plugin\Thunder\OptionalModuleCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
$form['adsense']['adsense_basic_id'] = [
'#type' => 'textfield',
'#title' => $this
->t('Site Google AdSense Publisher ID'),
'#required' => FALSE,
'#default_value' => '',
'#pattern' => 'pub-[0-9]+',
'#description' => $this
->t('This is the Google AdSense Publisher ID for the site owner. It is used if no other ID is suitable. Get this in your Google Adsense account. It should be similar to %id.', [
'%id' => 'pub-9999999999999',
]),
];
return $form;
}