Skip to content

Conversation

@kurowski
Copy link
Member

@kurowski kurowski commented Nov 5, 2025

@kurowski kurowski requested a review from shaundrong November 5, 2025 16:28
Comment on lines +118 to +119
$config = \Drupal::config('uceap_logging.settings');
$sensitive_fields = $config->get('sensitive_fields') ?? [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a benefit to using config over state?

I guess with config you can review the file directly versus have to look in the binary blob of the database.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the fields themselves exist in config it feels like the field list does too. Lets us cleanly deploy updates to both (new sensitive field added? new senstitive_fields config value).

$config = $this->config('uceap_logging.settings');

$form['sensitive_fields'] = [
'#type' => 'textarea',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened a PR with a suggestion to make the list selectable #3

@kurowski kurowski merged commit 09e477e into main Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants