Update use of once function
Use element passed into the function in foreach instead of trying to access it with "this". That seemed to work for a while, but as of the latest released of Drupal 10 it does not.
Please register or sign in to comment
Use element passed into the function in foreach instead of trying to access it with "this". That seemed to work for a while, but as of the latest released of Drupal 10 it does not.