Changes for src/Form/PiwikProAdminSettingsForm.php: 8 added lines, 5 removed lines.
Original line number
Diff line number
Diff line
@@ -56,18 +56,20 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#title'=>$this->t('General settings'),
];
$form['general']['piwik_domain']=[
'#type'=>'textfield',
'#type'=>'url',
'#title'=>$this->t('Container address (URL)'),
'#description'=>$this->t('The account address with <strong>containers</strong> added to the address.<br>
F.e.: <code>https://yourname.<strong>containers</strong>.piwik.pro/</code> or
<code>https://yourname.piwik.pro/<strong>containers</strong></code>. Always end with a slash (/).'),
'#default_value'=>$config->get('piwik_domain'),
'#required'=>true,
];
$form['general']['site_id']=[
'#type'=>'textfield',
'#title'=>$this->t('Site ID'),
'#description'=>$this->t('The ID for your site in Piwik Pro. <a href=":piwik_help_url" target="_blank">Where to find it?</a>',[':piwik_help_url'=>'https://help.piwik.pro/support/questions/find-website-id/']),
'#default_value'=>$config->get('site_id'),
'#required'=>true,
];
$form['general']['sync_snippet']=[
'#type'=>'checkbox',
@@ -82,6 +84,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
Rename the data layer if you use other data layers to prevent interference.
<a href=":piwik_help_datalayer" target="_blank">How to check it?</a>',[':piwik_help_datalayer'=>'https://developers.piwik.pro/en/latest/tag_manager/data_layer_name.html#data-layer-name-guidelines']),
'#default_value'=>$config->get('data_layer'),
'#required'=>true,
];
$form['tracking']=[
@@ -119,21 +122,21 @@ public function validateForm(array &$form, FormStateInterface $form_state) {