Exporting variables in Drupal 9

By berliner, 23 December, 2021

I couldn't find information on this easily, so I thought it's worth putting this here.

The equivalent of drupal_var_export() / ctools_var_export() in Drupal 8/9 is Variable::export():

Tags

Version