function mathjax_update_8202 in MathJax: LaTeX for Drupal 3.0.x
Same name and namespace in other branches
- 8.2 mathjax.install \mathjax_update_8202()
Enable on admin to preserve backwards compatibility.
File
- ./
mathjax.install, line 60 - MathJax module install.
Code
function mathjax_update_8202() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('mathjax.settings');
$config
->set('enable_for_admin', 1)
->save(TRUE);
}