The following error happens on the module settings form:

User error: "ROLENAME" is an invalid render array key in Drupal\Core\Render\Element::children() (line 97 of core/lib/Drupal/Core/Render/Element.php). 

It's caused by a typo in the buildForm() method:

       '#options' => $roles_options,
-      '$default_value' => $config->get('role_watchdog_monitor_roles') != NULL ? $config->get('role_watchdog_monitor_roles') : NULL,
+      '#default_value' => $config->get('role_watchdog_monitor_roles') != NULL ? $config->get('role_watchdog_monitor_roles') : NULL,
       '#description' => $this->t('Select roles to monitor for change.'),
CommentFileSizeAuthor
#2 3153070-2.patch774 bytesgaurav.kapoor

Comments

markus_petrux created an issue. See original summary.

gaurav.kapoor’s picture

Status: Active » Needs review
StatusFileSize
new774 bytes

@markus_petrux Thanks for spotting this and working on this module.

gaurav.kapoor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.