By voleger on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.7.x
Introduced in version:
8.7.0
Issue links:
Description:
db_ignore_replica() is deprecated and will be removed in Drupal 9.0.0.
Use \Drupal::service('database.replica_kill_switch')->trigger(); instead.
Controllers and services should inject the database.replica_kill_switch service and use the trigger() method
Before
db_ignore_replica();
After
$this->replicaKillSwitch->trigger();
Impacts:
Module developers