function mathjax_update_8202 in MathJax: LaTeX for Drupal 8.2
Same name and namespace in other branches
- 3.0.x mathjax.install \mathjax_update_8202()
Enable on admin to preserve backwards compatibility.
File
- ./
mathjax.install, line 59 - 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);
}