function _mathjax_library_present in MathJax: LaTeX for Drupal 8.2
Same name and namespace in other branches
- 7.2 mathjax.install \_mathjax_library_present()
- 3.0.x mathjax.install \_mathjax_library_present()
Determines whether the MathJax sources are present.
Return value
bool True if MathJax is installed
1 call to _mathjax_library_present()
- mathjax_requirements in ./
mathjax.install - Implements hook_requirements().
File
- ./
mathjax.install, line 36 - MathJax module install.
Code
function _mathjax_library_present() {
$path = Drupal::root() . '/libraries/MathJax/MathJax.js';
return file_exists($path);
}