Skip to content

Add a file that contains post update functions

Fixes the "Too few arguments" error received during updates by triggering a cache rebuild in a post update function.

Closes #3183432

Steps to test

These steps simulate the use-case when a user would update the module instead of starting fresh with all changes. These steps are for Drupal 8, but if you want to test this on Drupal 9 you need to apply the second patch mentioned in the second step.

  1. Install the latest beta version of GraphQL Twig
  2. Apply the patch 69e57371 (patch) for GraphQL Twig (If you test on Drupal 9, apply this patch as well: a52e1e60 (patch))
  3. Apply the changes in this merge request as a patch issue/graphql_twig-3183432@537353b9 (patch) for GraphQL Twig
  4. Try to clear the caches with e.g. drush, you shouldn't see the "Too few arguments" error for the constructor in the Loader class.
Edited by Daniel Storgårds

Merge request reports

Loading