Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / pathauto / src / Form / PathautoSettingsForm.php
index 281edb248e8fe0767f038e0ce7f056d6e8ddd23a..cbf24079887e574d70ef3863e93fde6029f44329 100644 (file)
@@ -199,10 +199,9 @@ class PathautoSettingsForm extends ConfigFormBase {
     );
 
     $form['punctuation'] = array(
-      '#type' => 'fieldset',
+      '#type' => 'details',
       '#title' => $this->t('Punctuation'),
-      '#collapsible' => TRUE,
-      '#collapsed' => TRUE,
+      '#open' => FALSE,
       '#tree' => TRUE,
     );
 
@@ -241,7 +240,6 @@ class PathautoSettingsForm extends ConfigFormBase {
 
     $form_state->cleanValues();
 
-    $original_entity_types = $config->get('enabled_entity_types');
     foreach ($form_state->getValues() as $key => $value) {
       if ($key == 'enabled_entity_types') {
         $enabled_entity_types = [];