Drupal core issue #3347842 deprecates the "trusted data" concept in the configuration system. ConfigEntityInterface::trustData() and Config::save(TRUE) are deprecated in Drupal 11.4+ and will be removed in Drupal 13.

The domain module has 13 occurrences across 5 files:

  • domain_access/src/Hook/DomainAccessDomainHooks.php — 4× ->trustData()->save()
  • domain_source/src/Hook/DomainSourceEntityHooks.php — 1× ->trustData()->save()
  • domain_source/domain_source.install — 1× ->trustData()
  • domain_access/domain_access.install — 5× ->save(TRUE)
  • domain/domain.install — 2× ->save(TRUE)

The fix is to replace ->trustData()->save() with ->save() and ->save(TRUE) with ->save().

Issue fork domain-3578405

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

mably’s picture

Title: Remove deprecated trustData() and save(TRUE) calls for Drupal 11.4+ compatibility » Remove deprecated trustData() and save(TRUE) calls for Drupal 11.4+ compatibility

mably changed the visibility of the branch 3578405--remove-deprecated to hidden.

mably changed the visibility of the branch 3578405--remove-deprecated to active.

mably’s picture

Removed all 13 deprecated trustData() and save(TRUE) calls across 5 files:

  • domain_access/src/Hook/DomainAccessDomainHooks.php — 4× ->trustData()->save()->save()
  • domain_source/src/Hook/DomainSourceEntityHooks.php — removed $trusted parameter and conditional, simplified to ->save()
  • domain_source/domain_source.install — 1× ->trustData()->save()->save(), removed TRUE argument from callers
  • domain_access/domain_access.install — 5× ->save(TRUE)->save()
  • domain/domain.install — 2× ->save(TRUE)->save()

  • mably committed a33e59fa on 3.x
    task: #3578405 Remove deprecated trustData() and save(TRUE) calls for...
mably’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • mably committed 3e7f426f on 2.0.x
    task: #3578405 Remove deprecated trustData() and save(TRUE) calls for...

Status: Fixed » Closed (fixed)

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