diff --git a/src/Form/SocialAuthSettingsForm.php b/src/Form/SocialAuthSettingsForm.php index a8af32e..84e2aa6 100644 --- a/src/Form/SocialAuthSettingsForm.php +++ b/src/Form/SocialAuthSettingsForm.php @@ -21,7 +21,9 @@ class SocialAuthSettingsForm extends ConfigFormBase { * {@inheritdoc} */ protected function getEditableConfigNames() { - return 'social_auth.settings'; + return [ + 'social_auth.settings', + ]; } /** @@ -64,7 +66,7 @@ class SocialAuthSettingsForm extends ConfigFormBase { $options = array(); foreach ($roles as $key => $role_object) { if ($key != 'anonymous' && $key != 'authenticated') { - $options[$key] = SafeMarkup::checkPlain($role_object->get('label')); + $options[$key] = \Drupal\Component\Utility\Html::escape($role_object->get('label')); } }