Created
March 24, 2016 07:39
-
-
Save vermario/959ff67c2a5a4a897082 to your computer and use it in GitHub Desktop.
Drupal8: check if a module is installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (\Drupal::moduleHandler()->moduleExists('my_module')) { | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment