public function ShurlyAnalyticsSettingsForm::buildForm in ShURLy 8
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ConfigFormBase::buildForm
File
- shurly_analytics/
src/ Form/ ShurlyAnalyticsSettingsForm.php, line 33
Class
Namespace
Drupal\shurly_analytics\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
global $base_url;
$form['shurlyanalytics_account'] = [
'#title' => t('Enter you Identifiant (ID) Web Property'),
'#type' => 'textfield',
'#default_value' => \Drupal::config('google_analytics.settings')
->get('account'),
'#size' => 15,
'#maxlength' => 20,
'#required' => TRUE,
];
return parent::buildForm($form, $form_state);
}